aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zc0301
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-10-09 21:15:27 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 23:03:25 -0400
commitc3e2a8e64cb2282a406ff6e63f7bd09eb6f61a1d (patch)
tree600a97963467e7ebdb488012dab4c21a976331a9 /drivers/media/video/zc0301
parent3abff557d5eed7d6fd03aa11353a1c0f329cac2b (diff)
V4L/DVB (6308): V4L: zc0301, remove bad usage of ERESTARTSYS
zc0301, 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/video/zc0301')
-rw-r--r--drivers/media/video/zc0301/zc0301_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c
index 35138c594be1..08a93c31c0a0 100644
--- a/drivers/media/video/zc0301/zc0301_core.c
+++ b/drivers/media/video/zc0301/zc0301_core.c
@@ -655,7 +655,7 @@ static int zc0301_open(struct inode* inode, struct file* filp)
655 int err = 0; 655 int err = 0;
656 656
657 if (!down_read_trylock(&zc0301_dev_lock)) 657 if (!down_read_trylock(&zc0301_dev_lock))
658 return -ERESTARTSYS; 658 return -EAGAIN;
659 659
660 cam = video_get_drvdata(video_devdata(filp)); 660 cam = video_get_drvdata(video_devdata(filp));
661 661