Search Linux Wireless

[PATCH] ath9k: use spin_lock_bh() instead of spin_lock() in ath_tid_drain()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit a9f042cb ("ath9k: fix lockdep warning when unloading module")
changed spin_[un]lock() to
spin_[un]lock_bh() in ath_tx_node_cleanup(), but didn't change those
in ath_tid_drain().

Signed-off-by: Jongman Heo <jongman.heo@xxxxxxxxx>

diff --git a/drivers/net/wireless/ath/ath9k/xmit.c
b/drivers/net/wireless/ath/ath9k/xmit.c
index 294b486..daf073b 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -235,9 +235,9 @@ static void ath_tid_drain(struct ath_softc *sc,
struct ath_txq *txq,
 		if (bf_isretried(bf))
 			ath_tx_update_baw(sc, tid, bf->bf_seqno);

-		spin_unlock(&txq->axq_lock);
+		spin_unlock_bh(&txq->axq_lock);
 		ath_tx_complete_buf(sc, bf, txq, &bf_head, 0, 0);
-		spin_lock(&txq->axq_lock);
+		spin_lock_bh(&txq->axq_lock);
 	}

 	tid->seq_next = tid->seq_start;
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux