提交 3abff557 编写于 作者: J Jiri Slaby 提交者: Mauro Carvalho Chehab

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: NJiri Slaby <jirislaby@gmail.com>
Acked-by: NLuca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 acd827d6
......@@ -2679,7 +2679,7 @@ static int w9968cf_open(struct inode* inode, struct file* filp)
/* This the only safe way to prevent race conditions with disconnect */
if (!down_read_trylock(&w9968cf_disconnect))
return -ERESTARTSYS;
return -EAGAIN;
cam = (struct w9968cf_device*)video_get_drvdata(video_devdata(filp));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册