Date: Thu, 18 Aug 2011 03:44:32 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r224956 - user/adrian/if_ath_tx/sys/dev/ath Message-ID: <201108180344.p7I3iWjW035337@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108180344.p7I3iWjW035337>