summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:15:27 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:15:27 -0300
commitcd5915013429e7f2263a7f53ead5f36f9563300a (patch)
treedbcd7317651d2f6e4ee1f061356cac762d57c05a /linux/drivers/media
parent109223eb261f2b8932eb472713aee9cfa091b338 (diff)
downloadmediapointer-dvb-s2-cd5915013429e7f2263a7f53ead5f36f9563300a.tar.gz
mediapointer-dvb-s2-cd5915013429e7f2263a7f53ead5f36f9563300a.tar.bz2
V4L: zc0301, remove bad usage of ERESTARTSYS
From: Jiri Slaby <jirislaby@gmail.com> 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 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/zc0301/zc0301_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zc0301/zc0301_core.c b/linux/drivers/media/video/zc0301/zc0301_core.c
index 519fc927c..de6c86be0 100644
--- a/linux/drivers/media/video/zc0301/zc0301_core.c
+++ b/linux/drivers/media/video/zc0301/zc0301_core.c
@@ -659,7 +659,7 @@ static int zc0301_open(struct inode* inode, struct file* filp)
int err = 0;
if (!down_read_trylock(&zc0301_dev_lock))
- return -ERESTARTSYS;
+ return -EAGAIN;
cam = video_get_drvdata(video_devdata(filp));