diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-17 20:20:50 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-17 20:20:50 +0000 |
commit | 483bc6dfc62422269463169947222cab1762c07d (patch) | |
tree | 57155bd480c258f942412655e7e29f320dfdf481 /v4l2-apps/INSTALL | |
parent | 05da578ca1e11f37b78f9821a7c26dcd603fb5bb (diff) | |
download | mediapointer-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 'v4l2-apps/INSTALL')
0 files changed, 0 insertions, 0 deletions