diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-13 18:07:56 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 17:08:58 (GMT) |
commit | aa9479ed508d78dcd06479dc6274c9b02d1398df (patch) | |
tree | fcf7f2002ca3494ebe6dfeed8962ca0879776a0d /drivers/media/video/videobuf-core.c | |
parent | d6849652628d3479859ca10bdd4b21024466df5f (diff) | |
download | linux-aa9479ed508d78dcd06479dc6274c9b02d1398df.tar.xz |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index 5613e08..45a8cbd 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); |