drm: Check CRTC viewport against framebuffer size
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Mar 2012 10:35:45 +0000 (12:35 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:51:04 +0000 (09:51 +0000)
commit5f61bb421f01023986902200b6486978c07176f7
treef78812553cc5a6b0a6ea9de018744b3ac2fbd426
parent90367bf6e98352520d15634ac4e79f0d4598cff1
drm: Check CRTC viewport against framebuffer size

Make sure the requested CRTC viewport fits inside the
framebuffer.

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