linux/drivers/media
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
..
common V4L/DVB (7899): Fixes a few remaining Kbuild issues at common/tuners 2008-05-14 02:56:47 -03:00
dvb V4L/DVB (7861): mt312: Prefix functions only with mt312_, Add zl10313 to kconfig description 2008-05-14 02:54:12 -03:00
radio V4L/DVB (7582): proc: switch /proc/driver/radio-typhoon to seq_file interface 2008-04-24 14:09:40 -03:00
video Fix a deadlock in the bttv driver 2008-05-20 10:12:26 -07:00
Kconfig V4L/DVB (7898): Fix VIDEO_MEDIA Kconfig logic 2008-05-14 02:56:47 -03:00
Makefile Fix drivers/media build for modular builds 2008-05-08 10:55:23 -07:00