Skip to content

Commit

Permalink
ath9k: Fix a locking related issue.
Browse files Browse the repository at this point in the history
Spin_lock has been tried to be acquired twice from ath9k_tasklet
to ath_reset which resulted in a machine freeze.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Jan 28, 2011
1 parent 22983c3 commit bdd62c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,11 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq,

rcu_read_unlock();

if (needreset)
if (needreset) {
spin_unlock_bh(&sc->sc_pcu_lock);
ath_reset(sc, false);
spin_lock_bh(&sc->sc_pcu_lock);
}
}

static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf,
Expand Down

0 comments on commit bdd62c0

Please sign in to comment.