summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 9cb794f..94c284b 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -2716,8 +2716,10 @@ static void dc_intr(arg)
DC_LOCK(sc);
ifp = &sc->arpcom.ac_if;
- if ( (CSR_READ_4(sc, DC_ISR) & DC_INTRS) == 0)
+ if ( (CSR_READ_4(sc, DC_ISR) & DC_INTRS) == 0) {
+ DC_UNLOCK(sc);
return ;
+ }
/* Suppress unwanted interrupts */
if (!(ifp->if_flags & IFF_UP)) {
OpenPOWER on IntegriCloud