drm: Warn if mode to umode conversion overflows the destination types
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Mar 2012 10:35:40 +0000 (12:35 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:49:18 +0000 (09:49 +0000)
commite36fae3889db38f6cacabea3998b9a09320f2ad2
tree8f3666f361816d652b172fd9f156ec790ed23d9f
parent2fcfc75b112e897609faed30bcf80565fb005087
drm: Warn if mode to umode conversion overflows the destination types

When converting from a drm_display_mode to drm_mode_modeinfo, print a
warning if the the timings values don't fit into the __u16 datatype.

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