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>
This commit is contained in:
Jiri Slaby 2007-10-09 22:15:27 -03:00 committed by Mauro Carvalho Chehab
parent 3abff557d5
commit c3e2a8e64c
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,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));