aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.org>2008-04-02 17:10:59 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:57 -0400
commitcbcb565f74cf01d680f83af531490bb2c5375af0 (patch)
treed74912ddd6e507d7e602b43d1484e9a0377bdd27 /drivers/media
parent009a90597e177320e47154dd0817d201f52bcd46 (diff)
V4L/DVB (7489): videobuf-vmalloc.c: Remove buf_release from videobuf_vm_close
Remove the buf_release on vm_close because it will lead to a buffer being released multiple times since all buffers are already freed under the two possible cases: device close or STREAMOFF. Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/videobuf-vmalloc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index 4a2508dfa0e3..e23335f2919d 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -78,8 +78,6 @@ videobuf_vm_close(struct vm_area_struct *vma)
78 if (q->bufs[i]->map != map) 78 if (q->bufs[i]->map != map)
79 continue; 79 continue;
80 80
81 q->ops->buf_release(q,q->bufs[i]);
82
83 q->bufs[i]->map = NULL; 81 q->bufs[i]->map = NULL;
84 q->bufs[i]->baddr = 0; 82 q->bufs[i]->baddr = 0;
85 } 83 }