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 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
bttv-audio-hook.h
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
bttv-i2c.c
bttv-if.c
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
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