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
72420630
Commit
72420630
authored
Oct 09, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB: Fix a merge conflict that affects unlock_ioctl
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
be737a82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/media/video/v4l2-dev.c
drivers/media/video/v4l2-dev.c
+5
-5
No files found.
drivers/media/video/v4l2-dev.c
View file @
72420630
...
@@ -236,20 +236,20 @@ static unsigned int v4l2_poll(struct file *filp, struct poll_table_struct *poll)
...
@@ -236,20 +236,20 @@ static unsigned int v4l2_poll(struct file *filp, struct poll_table_struct *poll)
static
long
v4l2_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
long
v4l2_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
struct
video_device
*
vdev
=
video_devdata
(
filp
);
struct
video_device
*
vdev
=
video_devdata
(
filp
);
int
ret
;
int
ret
=
-
ENODEV
;
if
(
!
vdev
->
fops
->
ioctl
)
return
-
ENOTTY
;
if
(
vdev
->
fops
->
unlocked_ioctl
)
{
if
(
vdev
->
fops
->
unlocked_ioctl
)
{
if
(
vdev
->
lock
)
if
(
vdev
->
lock
)
mutex_lock
(
vdev
->
lock
);
mutex_lock
(
vdev
->
lock
);
ret
=
vdev
->
fops
->
unlocked_ioctl
(
filp
,
cmd
,
arg
);
if
(
video_is_registered
(
vdev
))
ret
=
vdev
->
fops
->
unlocked_ioctl
(
filp
,
cmd
,
arg
);
if
(
vdev
->
lock
)
if
(
vdev
->
lock
)
mutex_unlock
(
vdev
->
lock
);
mutex_unlock
(
vdev
->
lock
);
}
else
if
(
vdev
->
fops
->
ioctl
)
{
}
else
if
(
vdev
->
fops
->
ioctl
)
{
/* TODO: convert all drivers to unlocked_ioctl */
/* TODO: convert all drivers to unlocked_ioctl */
lock_kernel
();
lock_kernel
();
ret
=
vdev
->
fops
->
ioctl
(
filp
,
cmd
,
arg
);
if
(
video_is_registered
(
vdev
))
ret
=
vdev
->
fops
->
ioctl
(
filp
,
cmd
,
arg
);
unlock_kernel
();
unlock_kernel
();
}
else
}
else
ret
=
-
ENOTTY
;
ret
=
-
ENOTTY
;
...
...
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