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
Kirill Smelkov
linux
Commits
88e3cb07
Commit
88e3cb07
authored
May 25, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm_compat_ioctl(): tidy up a bit
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
87d3ce11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
drivers/gpu/drm/drm_ioc32.c
drivers/gpu/drm/drm_ioc32.c
+9
-13
No files found.
drivers/gpu/drm/drm_ioc32.c
View file @
88e3cb07
...
...
@@ -951,6 +951,7 @@ static struct {
long
drm_compat_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
unsigned
int
nr
=
DRM_IOCTL_NR
(
cmd
);
struct
drm_file
*
file_priv
=
filp
->
private_data
;
drm_ioctl_compat_t
*
fn
;
int
ret
;
...
...
@@ -965,19 +966,14 @@ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if
(
!
fn
)
return
drm_ioctl
(
filp
,
cmd
,
arg
);
if
(
drm_compat_ioctls
[
nr
].
name
)
{
struct
drm_file
*
file_priv
=
filp
->
private_data
;
DRM_DEBUG
(
"pid=%d, dev=0x%lx, auth=%d, %s
\n
"
,
task_pid_nr
(
current
),
(
long
)
old_encode_dev
(
file_priv
->
minor
->
kdev
->
devt
),
file_priv
->
authenticated
,
drm_compat_ioctls
[
nr
].
name
);
ret
=
(
*
fn
)
(
filp
,
cmd
,
arg
);
ret
=
(
*
fn
)
(
filp
,
cmd
,
arg
);
if
(
ret
)
DRM_DEBUG
(
"ret = %d
\n
"
,
ret
);
}
else
{
ret
=
(
*
fn
)
(
filp
,
cmd
,
arg
);
}
return
ret
;
}
EXPORT_SYMBOL
(
drm_compat_ioctl
);
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