]> err.no Git - linux-2.6/commit
V4L/DVB (7562): videobuf: Require spinlocks for all videobuf users
authorBrandon Philips <bphilips@suse.de>
Fri, 28 Mar 2008 17:18:33 +0000 (10:18 -0700)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:16 +0000 (14:09 -0300)
commit0cf4daee31d88086cf3508d1d8d1f4e451c27906
tree522c7f2fa9bbac4682dd00776b606278c485bad5
parentaa9479ed508d78dcd06479dc6274c9b02d1398df
V4L/DVB (7562): videobuf: Require spinlocks for all videobuf users

A spinlock is necessary for queue_cancel to work with every driver in the tree.
Otherwise a race exists between IRQ handlers removing buffers from the queue
and queue_cancel invalidating the queue.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videobuf-core.c