android_kernel_xiaomi_sm8350/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
bt832.h
bt848.h
bttv-audio-hook.c
bttv-audio-hook.h
bttv-cards.c
bttv-driver.c Fix a deadlock in the bttv driver 2008-05-20 10:12:26 -07:00
bttv-gpio.c
bttv-i2c.c
bttv-if.c
bttv-input.c
bttv-risc.c
bttv-vbi.c
bttv.h
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