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>
This commit is contained in:

committed by
John W. Linville

parent
8da07830e1
commit
781b14a315
@@ -1536,7 +1536,7 @@ bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx)
|
||||
int i;
|
||||
u32 npend = 0;
|
||||
|
||||
if (sc->sc_flags & SC_OP_INVALID)
|
||||
if (test_bit(SC_OP_INVALID, &sc->sc_flags))
|
||||
return true;
|
||||
|
||||
ath9k_hw_abort_tx_dma(ah);
|
||||
|
Reference in New Issue
Block a user