aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-10-09 21:03:12 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 23:03:25 -0400
commit3abff557d5eed7d6fd03aa11353a1c0f329cac2b (patch)
tree6e0678710a07e4f1a28de97664de7319620d68a8 /drivers/media
parentacd827d63a568a2cfa26ae8e6093b098c91c631b (diff)
V4L/DVB (6307): V4L: w9968cf, remove bad usage of ERESTARTSYS
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 'drivers/media')
-rw-r--r--drivers/media/video/w9968cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index 77599f228b61..5a1b5f5a7d46 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -2679,7 +2679,7 @@ static int w9968cf_open(struct inode* inode, struct file* filp)
2679 2679
2680 /* This the only safe way to prevent race conditions with disconnect */ 2680 /* This the only safe way to prevent race conditions with disconnect */
2681 if (!down_read_trylock(&w9968cf_disconnect)) 2681 if (!down_read_trylock(&w9968cf_disconnect))
2682 return -ERESTARTSYS; 2682 return -EAGAIN;
2683 2683
2684 cam = (struct w9968cf_device*)video_get_drvdata(video_devdata(filp)); 2684 cam = (struct w9968cf_device*)video_get_drvdata(video_devdata(filp));
2685 2685