mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue