linux/drivers/media/video/bt8xx
Arjan van de Ven 81b2dbcad8 Fix a deadlock in the bttv driver
vidiocgmbuf() does this:
        mutex_lock(&fh->cap.vb_lock);
        retval = videobuf_mmap_setup(&fh->cap, gbuffers, gbufsize,
                                     V4L2_MEMORY_MMAP);

and videobuf_mmap_setup() then just does
        mutex_lock(&q->vb_lock);
        ret = __videobuf_mmap_setup(q, bcount, bsize, memory);
        mutex_unlock(&q->vb_lock);

which is an obvious double-take deadlock.

This patch fixes this by having vidiocgmbuf() just call the
__videobuf_mmap_setup function instead.

Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Reported-by: Koos Vriezen <koos.vriezen@gmail.com>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-20 10:12:26 -07:00
..
bt832.c V4L/DVB (7460): bttv: Bt832 - fix possible NULL pointer deref 2008-04-06 17:13:18 -03:00
bt832.h
bt848.h
bttv-audio-hook.c V4L/DVB (6507): bttv: whitespace cleanup 2008-01-25 19:01:53 -02:00
bttv-audio-hook.h V4L/DVB (6416): Split hooks on volume and audio mode and rework their handling 2008-01-25 19:00:59 -02:00
bttv-cards.c V4L/DVB (7389): git-dvb: drivers/media/video/bt8xx/bttv-cards.c: fix warnings 2008-04-24 14:07:52 -03:00
bttv-driver.c Fix a deadlock in the bttv driver 2008-05-20 10:12:26 -07:00
bttv-gpio.c V4L/DVB (6316): Change list_for_each+list_entry to list_for_each_entry 2007-10-10 13:35:29 -03:00
bttv-i2c.c i2c: Remove NOP i2c_algorithm.algo_control() methods 2007-10-13 23:56:32 +02:00
bttv-if.c V4L/DVB (5278): Bt8xx/: possible cleanups 2007-04-27 15:43:20 -03:00
bttv-input.c V4L/DVB (7368): bttv: added support for Kozumi KTV-01C card 2008-04-24 14:07:51 -03:00
bttv-risc.c V4L/DVB (6600): V4L: videobuf: don't chew up namespace STATE_.*, convert to VIDEOBUF_ 2008-01-25 19:02:11 -02:00
bttv-vbi.c V4L/DVB (7094): static memory 2008-04-24 13:42:20 -03:00
bttv.h V4L/DVB (7411): use tuner-simple for Philips FCV1236D digital tuning support 2008-04-24 14:07:53 -03:00
bttvp.h Add macros similar to min/max/min_t/max_t 2008-04-30 08:29:53 -07:00
Kconfig V4L/DVB (7851): Fix FW_LOADER depencency at v4l/dvb 2008-05-14 02:54:08 -03:00
Makefile V4L/DVB(7767): Move tuners to common/tuners 2008-04-29 18:41:37 -03:00