summaryrefslogtreecommitdiffstats
path: root/sys/dev/alc
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-01-28 21:03:32 +0000
committeryongari <yongari@FreeBSD.org>2011-01-28 21:03:32 +0000
commit747546166f1055f5d23ef661fbc30e355f1d6fec (patch)
tree2ca7590f59c86cc7047b1057b0806bf61d8553a6 /sys/dev/alc
parent700f5d5a135578ea61c1cfc643a334eaf33546d5 (diff)
downloadFreeBSD-src-747546166f1055f5d23ef661fbc30e355f1d6fec.zip
FreeBSD-src-747546166f1055f5d23ef661fbc30e355f1d6fec.tar.gz
Fix logic error. Due to the bug, it incorrectly checked TXQ status
which in turn can leave TXQ active. Submitted by: Brad ( brad <> comstyle dot com ) MFC after: 3 days
Diffstat (limited to 'sys/dev/alc')
-rw-r--r--sys/dev/alc/if_alc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
index 351ab05..2df1c8d 100644
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -3556,7 +3556,7 @@ alc_stop_queue(struct alc_softc *sc)
}
/* Disable TxQ. */
reg = CSR_READ_4(sc, ALC_TXQ_CFG);
- if ((reg & TXQ_CFG_ENB) == 0) {
+ if ((reg & TXQ_CFG_ENB) != 0) {
reg &= ~TXQ_CFG_ENB;
CSR_WRITE_4(sc, ALC_TXQ_CFG, reg);
}
OpenPOWER on IntegriCloud