ath9k: fix another crash bug

SVN-Revision: 28139
lede-17.01
Felix Fietkau 2011-08-31 23:25:37 +00:00
parent 7118498511
commit 5c8270da86
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@
+void ath_reset_work(struct work_struct *work)
+{
+ struct ath_softc *sc = container_of(work, struct ath_softc, hw_check_work);
+ struct ath_softc *sc = container_of(work, struct ath_softc, hw_reset_work);
+
+ spin_lock_bh(&sc->sc_pcu_lock);
+ ath_reset(sc, true);

View File

@ -342,7 +342,7 @@
return r;
@@ -971,9 +952,7 @@ void ath_reset_work(struct work_struct *
{
struct ath_softc *sc = container_of(work, struct ath_softc, hw_check_work);
struct ath_softc *sc = container_of(work, struct ath_softc, hw_reset_work);
- spin_lock_bh(&sc->sc_pcu_lock);
ath_reset(sc, true);