summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:03:12 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:03:12 -0300
commit109223eb261f2b8932eb472713aee9cfa091b338 (patch)
tree387cac2bfe1a998e9bc33cabe0ce2f03481e5be6 /linux/drivers/media
parent69bf5646734467d5b19800ed21df458e643b95e1 (diff)
downloadmediapointer-dvb-s2-109223eb261f2b8932eb472713aee9cfa091b338.tar.gz
mediapointer-dvb-s2-109223eb261f2b8932eb472713aee9cfa091b338.tar.bz2
V4L: w9968cf, remove bad usage of ERESTARTSYS
From: Jiri Slaby <jirislaby@gmail.com> w9968cf, remove bad usage of ERESTARTSYS down_read_trylock can't be interrupted and so ERESTARTSYS would reach userspace, which is not permitted. Change it to EAGAIN Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Luca Risolia <luca.risolia@studio.unibo.it> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/w9968cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/w9968cf.c b/linux/drivers/media/video/w9968cf.c
index 606a5e222..96247da94 100644
--- a/linux/drivers/media/video/w9968cf.c
+++ b/linux/drivers/media/video/w9968cf.c
@@ -2687,7 +2687,7 @@ static int w9968cf_open(struct inode* inode, struct file* filp)
/* This the only safe way to prevent race conditions with disconnect */
if (!down_read_trylock(&w9968cf_disconnect))
- return -ERESTARTSYS;
+ return -EAGAIN;
cam = (struct w9968cf_device*)video_get_drvdata(video_devdata(filp));