drm/amd/display: Fix error where wrong payload size is given.
authorZeyu Fan <Zeyu.Fan@amd.com>
Thu, 16 Feb 2017 23:34:50 +0000 (18:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:15:25 +0000 (17:15 -0400)
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c

index cd66941..4e9465b 100644 (file)
@@ -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);