drm/amd/display: Fix error where wrong payload size is given.

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>
This commit is contained in:
Zeyu Fan 2017-02-16 18:34:50 -05:00 committed by Alex Deucher
parent 2b230ea3e7
commit 185189dc51
1 changed files with 1 additions and 1 deletions

View 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);