svn commit: r218038 - head/sys/dev/alc

[ Available lists | Index of svn-src-head | Month of Jan 2011 | Week of 28 Jan 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Pyun YongHyeon <yongari@FreeBSD.org>
Date
28 Jan 2011 21:03:32
Subject
svn commit: r218038 - head/sys/dev/alc
Message-ID
201101282103.p0SL3Wwv099986@svn.freebsd.org


[ Hide this part ]
Author: yongari
Date: Fri Jan 28 21:03:32 2011
New Revision: 218038
URL: http://svn.freebsd.org/changeset/base/218038

Log:
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

Modified:
head/sys/dev/alc/if_alc.c

Modified: head/sys/dev/alc/if_alc.c
==============================================================================
--- head/sys/dev/alc/if_alc.c Fri Jan 28 20:49:15 2011 (r218037)
+++ head/sys/dev/alc/if_alc.c Fri Jan 28 21:03:32 2011 (r218038)
@@ -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);
}


Elapsed time: 0.101 seconds