]> git.baikalelectronics.ru Git - kernel.git/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)
commit94a6eff0c1fb9f437013189167d6458d8642da3f
tree522c7f2fa9bbac4682dd00776b606278c485bad5
parentbb663ef1e4a4cfc41ca975d046ab2ce88886aa5a
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