Commit 63337dd3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (6581): Fix: avoids negative vma usage count

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 33f77714
......@@ -571,7 +571,9 @@ static void em28xx_vm_close(struct vm_area_struct *vma)
{
/* NOTE: buffers are not freed here */
struct em28xx_frame_t *f = vma->vm_private_data;
f->vma_use_count--;
if (f->vma_use_count)
f->vma_use_count--;
}
static struct vm_operations_struct em28xx_vm_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment