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,6 +571,8 @@ static void em28xx_vm_close(struct vm_area_struct *vma) ...@@ -571,6 +571,8 @@ static void em28xx_vm_close(struct vm_area_struct *vma)
{ {
/* NOTE: buffers are not freed here */ /* NOTE: buffers are not freed here */
struct em28xx_frame_t *f = vma->vm_private_data; struct em28xx_frame_t *f = vma->vm_private_data;
if (f->vma_use_count)
f->vma_use_count--; f->vma_use_count--;
} }
......
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