ath9k: fix another crash bug
authorFelix Fietkau <nbd@openwrt.org>
Wed, 31 Aug 2011 23:25:37 +0000 (23:25 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 31 Aug 2011 23:25:37 +0000 (23:25 +0000)
SVN-Revision: 28139

package/mac80211/patches/581-ath9k_use_reset_work.patch
package/mac80211/patches/582-ath9k_merge_reset_functions.patch

index 7836718bbd7bcc523c402d7473f38d9f4df86eb8..810d968c4415f5a15b0cf46cb8da86e36b49cb26 100644 (file)
  
 +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);
index ff491a4a9c0c8749a7a8d089850db4d6ece95c47..975d2106fac7b98943aa542661cfc17b28475f2e 100644 (file)
        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);