diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-06-04 10:53:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:20:31 -0400 |
commit | 781b14a3153a722fec820374271316537881076e (patch) | |
tree | 40361dfbb1ed7cf5827ec7a156f338dc676ae964 /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | 8da07830e10a91cbe7badf9767230aafdd520b9c (diff) |
ath9k: Use atomic operations
The 'sc_flags' variable is being used in a number of places
with no locking whatsoever. This patch converts the usage
of sc_flags to atomic ops.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 6619a39b8c27..bb74780903d5 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1536,7 +1536,7 @@ bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx) | |||
1536 | int i; | 1536 | int i; |
1537 | u32 npend = 0; | 1537 | u32 npend = 0; |
1538 | 1538 | ||
1539 | if (sc->sc_flags & SC_OP_INVALID) | 1539 | if (test_bit(SC_OP_INVALID, &sc->sc_flags)) |
1540 | return true; | 1540 | return true; |
1541 | 1541 | ||
1542 | ath9k_hw_abort_tx_dma(ah); | 1542 | ath9k_hw_abort_tx_dma(ah); |