OSDN Git Service

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)
commit687a040038fb92c764adbb349ca132226677b417
tree6f3617f2a55a482313bd12999980e52e9c3dbed4
parent42ef87896adeb3116835a1e88abab84dafc1912d
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