Skip to content

Commit

Permalink
V4L/DVB (6581): Fix: avoids negative vma usage count
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 11, 2007
1 parent 33f7771 commit 63337dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 63337dd

Please sign in to comment.