From: Brandon Philips Date: Wed, 2 Apr 2008 21:10:59 +0000 (-0300) Subject: V4L/DVB (7489): videobuf-vmalloc.c: Remove buf_release from videobuf_vm_close X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cbcb565f74cf01d680f83af531490bb2c5375af0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mauro Carvalho Chehab --- 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) if (q->bufs[i]->map != map) continue; - q->ops->buf_release(q,q->bufs[i]); - q->bufs[i]->map = NULL; q->bufs[i]->baddr = 0; }