From: Jiri Slaby Date: Wed, 10 Oct 2007 01:15:27 +0000 (-0300) Subject: V4L/DVB (6308): V4L: zc0301, remove bad usage of ERESTARTSYS X-Git-Tag: v2.6.24-rc1~1463^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c3e2a8e64cb2282a406ff6e63f7bd09eb6f61a1d;p=linux-2.6-omap-h63xx.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 Acked-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c index 35138c594be..08a93c31c0a 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) int err = 0; if (!down_read_trylock(&zc0301_dev_lock)) - return -ERESTARTSYS; + return -EAGAIN; cam = video_get_drvdata(video_devdata(filp));