Skip to content

Commit d628032

Browse files
Daniel EnriquezCompute-Runtime-Automation
authored andcommitted
Windows Sysman Fan Fix at corner case.
Fix corner case of max 10 points.
1 parent 83a278d commit d628032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

level_zero/tools/source/sysman/fan/windows/os_fan_imp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ze_result_t WddmFanImp::setFixedSpeedMode(const zes_fan_speed_t *pSpeed) {
7070
}
7171

7272
ze_result_t WddmFanImp::setSpeedTableMode(const zes_fan_speed_table_t *pSpeedTable) {
73-
if (pSpeedTable->numPoints == 0 || pSpeedTable->numPoints >= maxPoints) {
73+
if (pSpeedTable->numPoints == 0 || pSpeedTable->numPoints > maxPoints) {
7474
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
7575
}
7676

0 commit comments

Comments
 (0)