Commit b7e7e6ca authored by Lv Ruyi's avatar Lv Ruyi Committed by Alex Deucher

drm/amd/display: fix application of sizeof to pointer

Both of split and merge are pointers, not arrays.
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 981b3045
...@@ -1223,8 +1223,8 @@ static void dml_full_validate_bw_helper(struct dc *dc, ...@@ -1223,8 +1223,8 @@ static void dml_full_validate_bw_helper(struct dc *dc,
*pipe_cnt = dml_populate_dml_pipes_from_context(dc, context, pipes, false); *pipe_cnt = dml_populate_dml_pipes_from_context(dc, context, pipes, false);
*vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, *pipe_cnt); *vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, *pipe_cnt);
if (*vlevel < context->bw_ctx.dml.soc.num_states) { if (*vlevel < context->bw_ctx.dml.soc.num_states) {
memset(split, 0, sizeof(split)); memset(split, 0, MAX_PIPES * sizeof(*split));
memset(merge, 0, sizeof(merge)); memset(merge, 0, MAX_PIPES * sizeof(*merge));
*vlevel = dml_validate_apply_pipe_split_flags(dc, context, *vlevel, split, merge); *vlevel = dml_validate_apply_pipe_split_flags(dc, context, *vlevel, split, merge);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment