summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie2017-02-17 02:13:17 +0100
committerDave Airlie2017-02-17 02:13:17 +0100
commit18a0de8816766a0da7537ef82156b5418ba5cd6e (patch)
treefaec026fbfa4a45ec0d7748a78b132f43525a8c5 /drivers/gpu
parentMerge tag 'drm-misc-fixes-2017-02-15' of git://anongit.freedesktop.org/git/dr... (diff)
parentdrm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor (diff)
downloadkernel-qcow2-linux-18a0de8816766a0da7537ef82156b5418ba5cd6e.tar.gz
kernel-qcow2-linux-18a0de8816766a0da7537ef82156b5418ba5cd6e.tar.xz
kernel-qcow2-linux-18a0de8816766a0da7537ef82156b5418ba5cd6e.zip
Merge branch 'drm-fixes-4.10' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
One regression fix for interlaced modes on radeon * 'drm-fixes-4.10' of git://people.freedesktop.org/~agd5f/linux: drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c
index fb16070b266e..4a4f9533c53b 100644
--- a/drivers/gpu/drm/radeon/radeon_cursor.c
+++ b/drivers/gpu/drm/radeon/radeon_cursor.c
@@ -205,8 +205,8 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
}
if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
- x >= (crtc->x + crtc->mode.crtc_hdisplay) ||
- y >= (crtc->y + crtc->mode.crtc_vdisplay))
+ x >= (crtc->x + crtc->mode.hdisplay) ||
+ y >= (crtc->y + crtc->mode.vdisplay))
goto out_of_bounds;
x += xorigin;