cxgbe(4): Fix inverted test in sysctl_loadavg

Only internal debug firmwares report the μP load averages so this bug
did not affect regular users.

Fixes:	e19d84979a cxgbe(4): Block most access to the hardware as soon as the adapter stops.
MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar
2025-08-29 17:08:39 -07:00
parent 72d01e62b0
commit 99f3c68452
+1 -1
View File
@@ -9016,7 +9016,7 @@ sysctl_loadavg(SYSCTL_HANDLER_ARGS)
rc = begin_synchronized_op(sc, NULL, SLEEP_OK | INTR_OK, "t4lavg");
if (rc)
return (rc);
if (hw_all_ok(sc))
if (!hw_all_ok(sc))
rc = ENXIO;
else {
param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |