summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vgem
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2017-07-14 20:12:12 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-07-17 21:08:31 +0200
commitad364f447e367a4b997cc75093600663caeedb68 (patch)
tree1fbe445a30cf34dbb61ee87eb2c6ced7cb56b202 /drivers/gpu/drm/vgem
parent8038e09be5a3ac061118bd80c7a505829920b50f (diff)
downloadlinux-stable-ad364f447e367a4b997cc75093600663caeedb68.tar.gz
linux-stable-ad364f447e367a4b997cc75093600663caeedb68.tar.bz2
linux-stable-ad364f447e367a4b997cc75093600663caeedb68.zip
drm/vgem: add compat_ioctl support
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
Diffstat (limited to 'drivers/gpu/drm/vgem')
-rw-r--r--drivers/gpu/drm/vgem/vgem_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c
index c938af8c40cf..12289673f457 100644
--- 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,
};