]> git.baikalelectronics.ru Git - kernel.git/commit
drm/crtc: Fix edid length computation
authorShixin Zeng <zeng.shixin@gmail.com>
Fri, 3 Jul 2015 06:46:50 +0000 (08:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 3 Jul 2015 22:52:34 +0000 (00:52 +0200)
commite2d100177033fe66f99c336b0e94aff0740d1194
tree99ab42e86bc4799c527a3d962d58a29dbfd543fb
parent73a8e9d080a12bb40d980af460907bf1f3ded690
drm/crtc: Fix edid length computation

The length of each EDID block is EDID_LENGTH, and number of blocks is
(1 + edid->extensions) - we need to multiply not add them.

This causes wrong EDID to be passed on, and is a regression introduced
by 3c923e68fdff (drm: Introduce helper for replacing blob properties)

Signed-off-by: Shixin Zeng <zeng.shixin@gmail.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
[danvet: Add Cc: and fix commit summary.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c