drm: add a check for x/y in drm_mode_setcrtc
Zhao Junwang authored
commit 01447e9f

 upstream.

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 <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarZhao Junwang <zhjwpku@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
bcfd1bcf
Name Last commit Last update
..
drm
host1x
ipu-v3
vga
Makefile