mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-26 00:39:18 +07:00
V4L/DVB (12776): tm6000: decrement users count
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
2cd4fd1e57
commit
a58d35cb93
@ -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);
|
||||
|
||||
tm6000_stop_thread(vidq);
|
||||
videobuf_mmap_free(&fh->vb_vidq);
|
||||
dev->users--;
|
||||
|
||||
if (!dev->users) {
|
||||
tm6000_stop_thread(vidq);
|
||||
videobuf_mmap_free(&fh->vb_vidq);
|
||||
}
|
||||
|
||||
kfree (fh);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user