]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit686dd832c984b6042679b2cc8d990c13d22470d6
tree8f3666f361816d652b172fd9f156ec790ed23d9f
parent7cb77b6c2b10a021bf13726f790e473bee27df30
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