Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5db0b5e1
Commit
5db0b5e1
authored
Dec 22, 2008
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (9930): em28xx: Fix bad locks on error condition
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
02ebf23b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx-video.c
+6
-6
No files found.
drivers/media/video/em28xx/em28xx-video.c
View file @
5db0b5e1
...
@@ -819,8 +819,10 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
...
@@ -819,8 +819,10 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
vidioc_try_fmt_vid_cap
(
file
,
priv
,
f
);
vidioc_try_fmt_vid_cap
(
file
,
priv
,
f
);
fmt
=
format_by_fourcc
(
f
->
fmt
.
pix
.
pixelformat
);
fmt
=
format_by_fourcc
(
f
->
fmt
.
pix
.
pixelformat
);
if
(
!
fmt
)
if
(
!
fmt
)
{
return
-
EINVAL
;
rc
=
-
EINVAL
;
goto
out
;
}
if
(
videobuf_queue_is_busy
(
&
fh
->
vb_vidq
))
{
if
(
videobuf_queue_is_busy
(
&
fh
->
vb_vidq
))
{
em28xx_errdev
(
"%s queue busy
\n
"
,
__func__
);
em28xx_errdev
(
"%s queue busy
\n
"
,
__func__
);
...
@@ -1305,10 +1307,8 @@ static int vidioc_streamon(struct file *file, void *priv,
...
@@ -1305,10 +1307,8 @@ static int vidioc_streamon(struct file *file, void *priv,
mutex_lock
(
&
dev
->
lock
);
mutex_lock
(
&
dev
->
lock
);
rc
=
res_get
(
fh
);
rc
=
res_get
(
fh
);
if
(
unlikely
(
rc
<
0
))
if
(
likely
(
rc
>=
0
))
return
rc
;
rc
=
videobuf_streamon
(
&
fh
->
vb_vidq
);
rc
=
videobuf_streamon
(
&
fh
->
vb_vidq
);
mutex_unlock
(
&
dev
->
lock
);
mutex_unlock
(
&
dev
->
lock
);
...
...
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