aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp/if_fxp.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>2000-09-17 23:04:57 +0000
committerDavid Greenman <dg@FreeBSD.org>2000-09-17 23:04:57 +0000
commitb184b38e2b9e21afd6f3cbdeba70fea8db5bcdb6 (patch)
tree8d9ba1b5fcaf04fe91cfcc0d152cb06af8d9756a /sys/dev/fxp/if_fxp.c
parent04ea20fcf4c9b10c68c6b355b60c1a361ee1caa6 (diff)
Notes
Diffstat (limited to 'sys/dev/fxp/if_fxp.c')
-rw-r--r--sys/dev/fxp/if_fxp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 08dd15cc8739..f10e58c806fe 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -1218,7 +1218,12 @@ fxp_intr(arg)
FXP_LOCK(sc, s);
- while (!sc->suspended && (statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
+ if (sc->suspended) {
+ FXP_UNLOCK(sc, s);
+ return;
+ }
+
+ while ((statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
#if defined(__NetBSD__)
claimed = 1;
#endif