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

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

parent 2cd4fd1e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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);

	dev->users--;

	if (!dev->users) {
		tm6000_stop_thread(vidq);
		videobuf_mmap_free(&fh->vb_vidq);
	}

	kfree (fh);