Unverified Commit 32dc9125 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11666 drm/amd/pm: fix the Out-of-bounds read warning

parents 7ee72490 0b153314
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ static int atomctrl_retrieve_ac_timing(
					j++;
				} else if ((table->mc_reg_address[i].uc_pre_reg_data &
							LOW_NIBBLE_MASK) == DATA_EQU_PREV) {
					if (i)
						table->mc_reg_table_entry[num_ranges].mc_data[i] =
							table->mc_reg_table_entry[num_ranges].mc_data[i-1];
				}