From: Hans Verkuil Date: Fri, 26 Nov 2010 09:43:51 +0000 (-0300) Subject: [media] v4l2-dev: use mutex_lock_interruptible instead of plain mutex_lock X-Git-Tag: v2.6.37-rc7~22^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2877842de8cbf6272b0a851cb12587b7dd8c2afb;p=pandora-kernel.git [media] v4l2-dev: use mutex_lock_interruptible instead of plain mutex_lock Where reasonable use mutex_lock_interruptible instead of mutex_lock. Also fix the poll, read and write error codes when called with an unregistered device (e.g. after a USB device was disconnected). Poll must return POLLERR|POLLHUP and read/write must return -ENODEV. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed