summaryrefslogtreecommitdiff
path: root/drivers/media/video/videobuf-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 15:07:56 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 14:08:58 -0300
commitaa9479ed508d78dcd06479dc6274c9b02d1398df (patch)
treefcf7f2002ca3494ebe6dfeed8962ca0879776a0d /drivers/media/video/videobuf-core.c
parentd6849652628d3479859ca10bdd4b21024466df5f (diff)
downloadlinux-aa9479ed508d78dcd06479dc6274c9b02d1398df.tar.gz
V4L/DVB (7561): videobuf-vmalloc: stop streaming before unmap
Before the patch, there were a risk of freeing and unmapping userspace memory, while there were pending requests. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videobuf-core.c')
-rw-r--r--drivers/media/video/videobuf-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 5613e0882b5c..45a8cbdf417d 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -901,7 +901,6 @@ static void __videobuf_read_stop(struct videobuf_queue *q)
{
int i;
-
videobuf_queue_cancel(q);
__videobuf_mmap_free(q);
INIT_LIST_HEAD(&q->stream);