[PATCH 5/8] drm/amd/display: Fix error where wrong payload size is given.

Harry Wentland harry.wentland at amd.com
Thu Feb 23 16:33:40 UTC 2017


From: Zeyu Fan <Zeyu.Fan at amd.com>

Change-Id: I2e0518be0e2ee513d7b001c0259ee41c0d104fd1
Signed-off-by: Zeyu Fan <Zeyu.Fan at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c
index cd66941b2c59..4e9465b630d1 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c
@@ -198,7 +198,7 @@ struct aux_payloads *dal_ddc_aux_payloads_create(struct dc_context *ctx, uint32_
 		return NULL;
 
 	if (dal_vector_construct(
-		&payloads->payloads, ctx, count, sizeof(struct aux_payloads)))
+		&payloads->payloads, ctx, count, sizeof(struct aux_payload)))
 		return payloads;
 
 	dm_free(payloads);
-- 
2.9.3



More information about the amd-gfx mailing list