dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [DRM] Fix a regression caused by a typo
@ 2015-07-02 18:57 Shixin Zeng
  2015-07-03  6:44 ` Daniel Vetter
  2015-07-03  7:23 ` Daniel Stone
  0 siblings, 2 replies; 4+ messages in thread
From: Shixin Zeng @ 2015-07-02 18:57 UTC (permalink / raw)
  To: David Airlie; +Cc: Daniel Stone, dri-devel, Shixin Zeng

From: Shixin Zeng <zeng.shixin@gmail.com>

The length of each EDID block is EDID_LENGTH, and number of blocks is (1
+ edid->extensions)

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

Signed-off-by: Shixin Zeng <zeng.shixin@gmail.com>
---
 drivers/gpu/drm/drm_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index b69ed97..b9ba061 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -4732,7 +4732,7 @@ int drm_mode_connector_update_edid_property(struct drm_connector *connector,
 		return 0;
 
 	if (edid)
-		size = EDID_LENGTH + (1 + edid->extensions);
+		size = EDID_LENGTH * (1 + edid->extensions);
 
 	ret = drm_property_replace_global_blob(dev,
 					       &connector->edid_blob_ptr,
-- 
2.4.5

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-03  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 18:57 [DRM] Fix a regression caused by a typo Shixin Zeng
2015-07-03  6:44 ` Daniel Vetter
2015-07-03  6:45   ` Daniel Vetter
2015-07-03  7:23 ` Daniel Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox