]> err.no Git - linux-2.6/commit
V4L/DVB (6308): V4L: zc0301, remove bad usage of ERESTARTSYS
authorJiri Slaby <jirislaby@gmail.com>
Wed, 10 Oct 2007 01:15:27 +0000 (22:15 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 03:03:25 +0000 (00:03 -0300)
commitc3e2a8e64cb2282a406ff6e63f7bd09eb6f61a1d
tree600a97963467e7ebdb488012dab4c21a976331a9
parent3abff557d5eed7d6fd03aa11353a1c0f329cac2b
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>
drivers/media/video/zc0301/zc0301_core.c