diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-07 00:11:35 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-07 00:11:35 +0100 |
commit | be5e587ff3d3bb0da3154d81c6d9b3fbada68f36 (patch) | |
tree | db330b1ca2081883a7573f544d098f878d9c5dd6 | |
parent | bee4fca3dc88e0601f37472e6afdf57cfd7ab40e (diff) | |
download | mediapointer-dvb-s2-be5e587ff3d3bb0da3154d81c6d9b3fbada68f36.tar.gz mediapointer-dvb-s2-be5e587ff3d3bb0da3154d81c6d9b3fbada68f36.tar.bz2 |
Fix buffer release code
Release code should happen before the cleaning of map variable.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/videobuf-vmalloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videobuf-vmalloc.c b/linux/drivers/media/video/videobuf-vmalloc.c index b55a97fcf..83aa3eda9 100644 --- a/linux/drivers/media/video/videobuf-vmalloc.c +++ b/linux/drivers/media/video/videobuf-vmalloc.c @@ -85,9 +85,11 @@ videobuf_vm_close(struct vm_area_struct *vma) if (mem->map != map) continue; + + q->ops->buf_release(q,q->bufs[i]); + mem->map = NULL; q->bufs[i]->baddr = 0; - q->ops->buf_release(q,q->bufs[i]); } mutex_unlock(&q->lock); kfree(map); |