V4L/DVB (6581): Fix: avoids negative vma usage count
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
33f7771411
commit
63337dd3f5
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue