[PATCH v2] 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 v2: -polish the annotation according to Daniel's comment Cc: Daniel Vetter Signed-off-by: Zhao Junwang -

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

2015-07-07 Thread Daniel Vetter
On Tue, Jul 07, 2015 at 05:08:35PM +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 > > v2: -polish the annotation a