Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 52acbfa

Browse files
authored
fix: validate GPU (#1802)
1 parent 0255f3d commit 52acbfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/services/hardware_service.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ bool HardwareService::IsValidConfig(
357357
auto res = hw_db.LoadHardwareList();
358358
if (res.has_value()) {
359359
for (auto const& e : res.value()) {
360-
if (!is_valid(e.software_id)) {
361-
return false;
360+
if (is_valid(e.software_id)) {
361+
return true;
362362
}
363363
}
364364
}
365-
return true;
365+
return false;
366366
}
367367
} // namespace services

0 commit comments

Comments
 (0)