Windows Sysman Fan Fix at corner case.

Fix corner case of max 10 points.
This commit is contained in:
Daniel Enriquez
2021-02-03 01:49:45 -08:00
committed by Compute-Runtime-Automation
parent 83a278d6f9
commit d628032206

View File

@@ -70,7 +70,7 @@ ze_result_t WddmFanImp::setFixedSpeedMode(const zes_fan_speed_t *pSpeed) {
}
ze_result_t WddmFanImp::setSpeedTableMode(const zes_fan_speed_table_t *pSpeedTable) {
if (pSpeedTable->numPoints == 0 || pSpeedTable->numPoints >= maxPoints) {
if (pSpeedTable->numPoints == 0 || pSpeedTable->numPoints > maxPoints) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}