]> 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)
commit64ed9a496a70522def2d1f348fe17bc0b22c1edb
tree8f3666f361816d652b172fd9f156ec790ed23d9f
parente1adfe22dc2838a482d07e1bf1acdac37489bf27
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