Skip to content

Commit

Permalink
V4L/DVB (7489): videobuf-vmalloc.c: Remove buf_release from videobuf_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Brandon Philips authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 009a905 commit cbcb565
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/videobuf-vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cbcb565

Please sign in to comment.