Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192637
b: refs/heads/master
c: a58d35c
h: refs/heads/master
i:
  192635: 305b6df
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent f864285 commit 75245de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cd4fd1e57cb6897612ead8a3d39ecb444920a1a
refs/heads/master: a58d35cb933f21a43fbdb5e4f575ff40faba3df2
8 changes: 6 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 75245de

Please sign in to comment.