Skip to content
Snippets Groups Projects
Commit 5c8270da authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ath9k: fix another crash bug

SVN-Revision: 28139
parent 71184985
No related branches found
No related tags found
No related merge requests found
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
+void ath_reset_work(struct work_struct *work) +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); + spin_lock_bh(&sc->sc_pcu_lock);
+ ath_reset(sc, true); + ath_reset(sc, true);
......
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
return r; return r;
@@ -971,9 +952,7 @@ void ath_reset_work(struct work_struct * @@ -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); - spin_lock_bh(&sc->sc_pcu_lock);
ath_reset(sc, true); ath_reset(sc, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment