summaryrefslogtreecommitdiff
path: root/linux/include/media/saa7115.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-17 20:20:50 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-17 20:20:50 +0000
commit483bc6dfc62422269463169947222cab1762c07d (patch)
tree57155bd480c258f942412655e7e29f320dfdf481 /linux/include/media/saa7115.h
parent05da578ca1e11f37b78f9821a7c26dcd603fb5bb (diff)
downloadmediapointer-dvb-s2-483bc6dfc62422269463169947222cab1762c07d.tar.gz
mediapointer-dvb-s2-483bc6dfc62422269463169947222cab1762c07d.tar.bz2
[PATCH] Fix a deadlock in the bttv driver
From: Arjan van de Ven <arjan@linux.intel.com> 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. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include/media/saa7115.h')
0 files changed, 0 insertions, 0 deletions