]> git.baikalelectronics.ru Git - kernel.git/commit
drm: plane: Check crtc coordinates against integer overflows in setplane ioctl
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Dec 2011 22:06:45 +0000 (00:06 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 10:04:46 +0000 (10:04 +0000)
commit3d1db9fac690c3e92f57d24072611db9d0173435
tree6f3617f2a55a482313bd12999980e52e9c3dbed4
parent88a6dc3ae5c5c6f03a9d4b3aa1c6a4640ad4b21a
drm: plane: Check crtc coordinates against integer overflows in setplane ioctl

Help drivers a little by guaranteeing that crtc_x+crtc_w and
crtc_y+crtc_h don't overflow.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c