Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2e31218 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: fix bug visit array out of bounds

parent 5bbc16cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1830,7 +1830,7 @@ static uint16_t fiji_find_closest_vddci(struct pp_hwmgr *hwmgr, uint16_t vddci)

	PP_ASSERT_WITH_CODE(false,
			"VDDCI is larger than max VDDCI in VDDCI Voltage Table!",
			return vddci_table->entries[i].value);
			return vddci_table->entries[i-1].value);
}

static int fiji_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr,
+1 −1
Original line number Diff line number Diff line
@@ -469,7 +469,7 @@ uint16_t phm_find_closest_vddci(struct pp_atomctrl_voltage_table *vddci_table, u

	PP_ASSERT_WITH_CODE(false,
			"VDDCI is larger than max VDDCI in VDDCI Voltage Table!",
			return vddci_table->entries[i].value);
			return vddci_table->entries[i-1].value);
}

int phm_find_boot_level(void *table,