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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
		*vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, *pipe_cnt);
		if (*vlevel < context->bw_ctx.dml.soc.num_states) {
			memset(split, 0, sizeof(split));
			memset(merge, 0, sizeof(merge));
			memset(split, 0, MAX_PIPES * sizeof(*split));
			memset(merge, 0, MAX_PIPES * sizeof(*merge));
			*vlevel = dml_validate_apply_pipe_split_flags(dc, context, *vlevel, split, merge);
		}