提交 63337dd3 编写于 作者: M Mauro Carvalho Chehab

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

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 33f77714
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册