projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8038e09
)
drm/vgem: add compat_ioctl support
author
Brian Norris
<briannorris@chromium.org>
Sat, 15 Jul 2017 03:12:12 +0000
(20:12 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 17 Jul 2017 19:08:31 +0000
(21:08 +0200)
DRM drivers should supply a compat version if they're going to provide
an ioctl implementation at all. This can confuse 32-bit user space on a
64-bit system.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20170715031212.108695-1-briannorris@chromium.org
drivers/gpu/drm/vgem/vgem_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vgem/vgem_drv.c
b/drivers/gpu/drm/vgem/vgem_drv.c
index
c938af8
..
1228967
100644
(file)
--- a/
drivers/gpu/drm/vgem/vgem_drv.c
+++ b/
drivers/gpu/drm/vgem/vgem_drv.c
@@
-278,6
+278,7
@@
static const struct file_operations vgem_driver_fops = {
.poll = drm_poll,
.read = drm_read,
.unlocked_ioctl = drm_ioctl,
+ .compat_ioctl = drm_compat_ioctl,
.release = drm_release,
};