commit | 90367bf6e98352520d15634ac4e79f0d4598cff1 | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Tue Mar 13 12:35:44 2012 +0200 |
committer | Dave Airlie <airlied@redhat.com> | Thu Mar 15 09:50:39 2012 +0000 |
tree | 3a7024ae8e30e2186ca71893243fd6b4c0576f13 | |
parent | ee34ab5b01e6e7cbd9438aeb6ccbd08d3727988e [diff] |
drm: Check user mode against overflows The internal mode representation drm_display_mode uses signed data types. When converting the user mode to internal representation, check that the unsigned values don't overflow the signed datatypes. 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>