Skip to content

Commit 99f3c68

Browse files
committed
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: e19d849 cxgbe(4): Block most access to the hardware as soon as the adapter stops. MFC after: 1 week Sponsored by: Chelsio Communications
1 parent 72d01e6 commit 99f3c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/dev/cxgbe/t4_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9016,7 +9016,7 @@ sysctl_loadavg(SYSCTL_HANDLER_ARGS)
90169016
rc = begin_synchronized_op(sc, NULL, SLEEP_OK | INTR_OK, "t4lavg");
90179017
if (rc)
90189018
return (rc);
9019-
if (hw_all_ok(sc))
9019+
if (!hw_all_ok(sc))
90209020
rc = ENXIO;
90219021
else {
90229022
param = V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |

0 commit comments

Comments
 (0)