mirror of https://gitee.com/openkylin/linux.git
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:
parent
3abff557d5
commit
c3e2a8e64c
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue