drm: edid: Add some bounds checking
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Aug 2012 14:55:04 +0000 (14:55 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 13 Sep 2012 01:21:36 +0000 (11:21 +1000)
commit9e50b9d55e9c38440175a0f27f77708e2270b140
tree88bc3d8a1b63d742410dbfa75e1a5d4bba96f134
parent4a1897d268bcde8a8d0ba7d3d887d70e66b4d6f1
drm: edid: Add some bounds checking

Make sure drm_detect_hdmi_monitor() and drm_detect_monitor_audio() don't
access beyond the extension block.

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