svn commit: r224956 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Thu Aug 18 03:44:32 UTC 2011
Author: adrian
Date: Thu Aug 18 03:44:32 2011
New Revision: 224956
URL: http://svn.freebsd.org/changeset/base/224956
Log:
Fix a locking bug I introduced in the past.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Aug 18 00:31:08 2011 (r224955)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Aug 18 03:44:32 2011 (r224956)
@@ -4434,8 +4434,8 @@ ath_tx_draintxq(struct ath_softc *sc, st
ATH_TXQ_LOCK(txq);
bf = STAILQ_FIRST(&txq->axq_q);
if (bf == NULL) {
- ATH_TXQ_UNLOCK(txq);
txq->axq_link = NULL;
+ ATH_TXQ_UNLOCK(txq);
break;
}
ATH_TXQ_REMOVE_HEAD(txq, bf_list);
More information about the svn-src-user
mailing list