[PATCH] drm: add a check for x/y in drm_mode_setcrtc

2015-07-07 Thread John Hunter
From: Zhao Junwang legacy setcrtc ioctl does take a 32 bit value which might indeed overflow the checks of crtc_req->x > INT_MAX and crtc_req->y > INT_MAX aren't needed any more with this Cc: Daniel Vetter Signed-off-by: Zhao Junwang --- drivers/gpu/drm/drm_crtc.c |7 +-- 1 file chan

[PATCH] drm: add a check for x/y in drm_mode_setcrtc

2015-07-07 Thread Daniel Vetter
On Tue, Jul 07, 2015 at 04:21:50PM +0800, John Hunter wrote: > From: Zhao Junwang > > legacy setcrtc ioctl does take a 32 bit value which might indeed > overflow > > the checks of crtc_req->x > INT_MAX and crtc_req->y > INT_MAX aren't > needed any more with this > > Cc: Daniel Vetter > Signed-