mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
V4L/DVB (6263): Fix buffer release code
Release code should happen before the cleaning of map variable. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
e78dcf5552
commit
123f8ef64e
@ -84,9 +84,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user