From 747546166f1055f5d23ef661fbc30e355f1d6fec Mon Sep 17 00:00:00 2001 From: yongari Date: Fri, 28 Jan 2011 21:03:32 +0000 Subject: 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 --- sys/dev/alc/if_alc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') 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); } -- cgit v1.1