Commit a58d35cb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (12776): tm6000: decrement users count

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2cd4fd1e
...@@ -1441,8 +1441,12 @@ static int tm6000_release(struct inode *inode, struct file *file) ...@@ -1441,8 +1441,12 @@ static int tm6000_release(struct inode *inode, struct file *file)
dprintk(dev, V4L2_DEBUG_OPEN, "tm6000: close called (minor=%d, users=%d)\n",minor,dev->users); dprintk(dev, V4L2_DEBUG_OPEN, "tm6000: close called (minor=%d, users=%d)\n",minor,dev->users);
dev->users--;
if (!dev->users) {
tm6000_stop_thread(vidq); tm6000_stop_thread(vidq);
videobuf_mmap_free(&fh->vb_vidq); videobuf_mmap_free(&fh->vb_vidq);
}
kfree (fh); kfree (fh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment