Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
feeb88e8
Commit
feeb88e8
authored
Jun 17, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (12776): tm6000: decrement users count
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
0a9f684d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/staging/tm6000/tm6000-video.c
drivers/staging/tm6000/tm6000-video.c
+6
-2
No files found.
drivers/staging/tm6000/tm6000-video.c
View file @
feeb88e8
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment