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
6113252d
Commit
6113252d
authored
May 25, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch compat_drm_rmmap() to drm_ioctl_kernel()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d6c56613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
drivers/gpu/drm/drm_ioc32.c
drivers/gpu/drm/drm_ioc32.c
+4
-10
No files found.
drivers/gpu/drm/drm_ioc32.c
View file @
6113252d
...
...
@@ -228,19 +228,13 @@ static int compat_drm_rmmap(struct file *file, unsigned int cmd,
unsigned
long
arg
)
{
drm_map32_t
__user
*
argp
=
(
void
__user
*
)
arg
;
struct
drm_map
__user
*
map
;
struct
drm_map
map
;
u32
handle
;
if
(
get_user
(
handle
,
&
argp
->
handle
))
return
-
EFAULT
;
map
=
compat_alloc_user_space
(
sizeof
(
*
map
));
if
(
!
map
)
return
-
EFAULT
;
if
(
__put_user
((
void
*
)(
unsigned
long
)
handle
,
&
map
->
handle
))
return
-
EFAULT
;
return
drm_ioctl
(
file
,
DRM_IOCTL_RM_MAP
,
(
unsigned
long
)
map
);
map
.
handle
=
compat_ptr
(
handle
);
return
drm_ioctl_kernel
(
file
,
drm_legacy_rmmap_ioctl
,
&
map
,
DRM_AUTH
);
}
typedef
struct
drm_client32
{
...
...
@@ -918,7 +912,7 @@ static struct {
DRM_IOCTL32_DEF
(
DRM_IOCTL_INFO_BUFS
,
compat_drm_infobufs
),
[
DRM_IOCTL_NR
(
DRM_IOCTL_MAP_BUFS32
)].
fn
=
compat_drm_mapbufs
,
DRM_IOCTL32_DEF
(
DRM_IOCTL_FREE_BUFS
,
compat_drm_freebufs
),
[
DRM_IOCTL_NR
(
DRM_IOCTL_RM_MAP32
)].
fn
=
compat_drm_rmmap
,
DRM_IOCTL32_DEF
(
DRM_IOCTL_RM_MAP
,
compat_drm_rmmap
)
,
DRM_IOCTL32_DEF
(
DRM_IOCTL_SET_SAREA_CTX
,
compat_drm_setsareactx
),
DRM_IOCTL32_DEF
(
DRM_IOCTL_GET_SAREA_CTX
,
compat_drm_getsareactx
),
DRM_IOCTL32_DEF
(
DRM_IOCTL_RES_CTX
,
compat_drm_resctx
),
...
...
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