]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
qxl: fix qxl_release_{map,unmap}
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Apr 2018 05:42:56 +0000 (07:42 +0200)
committerSean Paul <seanpaul@chromium.org>
Wed, 25 Apr 2018 19:03:12 +0000 (15:03 -0400)
commit66c0255cf58718517e4cdff3612b92b82c2bf71b
tree6faec70fb71c58f12f639a2388756c65ac435899
parentab170c27361d1578b4769276ce2bbdb14394743d
qxl: fix qxl_release_{map,unmap}

s/PAGE_SIZE/PAGE_MASK/

Luckily release_offset is never larger than PAGE_SIZE, so the bug has no
bad side effects and managed to stay unnoticed for years that way ...

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180418054257.15388-2-kraxel@redhat.com
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/qxl/qxl_ioctl.c
drivers/gpu/drm/qxl/qxl_release.c