Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 33f77714
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -571,6 +571,8 @@ 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;

	if (f->vma_use_count)
		f->vma_use_count--;
}