aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2016-05-17 06:28:03 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2016-05-17 06:28:03 +0000
commit2be4ef39bc638e92d0f253f68899a88cd7063365 (patch)
tree81e0ac47a22e073358ab332b9aa398995954b771 /sys
parentfdbffbab18667b6bc8ac76c16316950646127da2 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sfxge/common/efx_mcdi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/sfxge/common/efx_mcdi.c b/sys/dev/sfxge/common/efx_mcdi.c
index 5fd484e20f9be..1a12b65643a88 100644
--- a/sys/dev/sfxge/common/efx_mcdi.c
+++ b/sys/dev/sfxge/common/efx_mcdi.c
@@ -519,6 +519,11 @@ efx_mcdi_request_poll(
if ((rc = efx_mcdi_poll_reboot(enp)) != 0) {
emip->emi_pending_req = NULL;
EFSYS_UNLOCK(enp->en_eslp, state);
+
+ /* Reboot/Assertion */
+ if (rc == EIO || rc == EINTR)
+ efx_mcdi_raise_exception(enp, emrp, rc);
+
goto fail1;
}
}
@@ -553,10 +558,6 @@ fail1:
if (!emrp->emr_quiet)
EFSYS_PROBE1(fail1, efx_rc_t, rc);
- /* Reboot/Assertion */
- if (rc == EIO || rc == EINTR)
- efx_mcdi_raise_exception(enp, emrp, rc);
-
return (B_TRUE);
}