diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/videobuf-vmalloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index b2abfc9d9a8e..fd059cde63f4 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c | |||
@@ -84,9 +84,11 @@ videobuf_vm_close(struct vm_area_struct *vma) | |||
84 | 84 | ||
85 | if (mem->map != map) | 85 | if (mem->map != map) |
86 | continue; | 86 | continue; |
87 | |||
88 | q->ops->buf_release(q,q->bufs[i]); | ||
89 | |||
87 | mem->map = NULL; | 90 | mem->map = NULL; |
88 | q->bufs[i]->baddr = 0; | 91 | q->bufs[i]->baddr = 0; |
89 | q->ops->buf_release(q,q->bufs[i]); | ||
90 | } | 92 | } |
91 | mutex_unlock(&q->lock); | 93 | mutex_unlock(&q->lock); |
92 | kfree(map); | 94 | kfree(map); |