From a8d7e0f6abc36bbe17267e864d68d61fc9148ffc Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 30 Mar 2005 20:30:48 +0000 Subject: close unlikely race Submitted by: Michael Wong --- sys/dev/ath/if_ath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index b58aa110e0af4..013500fd5ac62 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -3460,14 +3460,14 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf (caddr_t)bf->bf_daddr, bf->bf_desc, txq->axq_depth); } txq->axq_link = &bf->bf_desc[bf->bf_nseg - 1].ds_link; - ATH_TXQ_UNLOCK(txq); - /* * The CAB queue is started from the SWBA handler since * frames only go out on DTIM and to avoid possible races. */ if (txq != sc->sc_cabq) ath_hal_txstart(ah, txq->axq_qnum); + ATH_TXQ_UNLOCK(txq); + return 0; #undef updateCTSForBursting #undef CTS_DURATION -- cgit v1.3