diff options
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index ec359c624831..e2e847db0891 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -310,6 +310,7 @@ static void ath_tx_complete_buf(struct ath_softc *sc, | |||
310 | { | 310 | { |
311 | struct sk_buff *skb = bf->bf_mpdu; | 311 | struct sk_buff *skb = bf->bf_mpdu; |
312 | struct ath_xmit_status tx_status; | 312 | struct ath_xmit_status tx_status; |
313 | unsigned long flags; | ||
313 | 314 | ||
314 | /* | 315 | /* |
315 | * Set retry information. | 316 | * Set retry information. |
@@ -340,9 +341,9 @@ static void ath_tx_complete_buf(struct ath_softc *sc, | |||
340 | /* | 341 | /* |
341 | * Return the list of ath_buf of this mpdu to free queue | 342 | * Return the list of ath_buf of this mpdu to free queue |
342 | */ | 343 | */ |
343 | spin_lock_bh(&sc->sc_txbuflock); | 344 | spin_lock_irqsave(&sc->sc_txbuflock, flags); |
344 | list_splice_tail_init(bf_q, &sc->sc_txbuf); | 345 | list_splice_tail_init(bf_q, &sc->sc_txbuf); |
345 | spin_unlock_bh(&sc->sc_txbuflock); | 346 | spin_unlock_irqrestore(&sc->sc_txbuflock, flags); |
346 | } | 347 | } |
347 | 348 | ||
348 | /* | 349 | /* |