Ticket #1073: ath_node_free_crash_fix.2.diff
| File ath_node_free_crash_fix.2.diff, 0.7 kB (added by rozteck@interia.pl, 2 years ago) |
|---|
-
madwifi-svn-r1860/ath/if_ath.c
old new 4825 4839 static void 4826 4840 ath_node_free(struct ieee80211_node *ni) 4827 4841 { 4828 struct ath_softc *sc = ni->ni_ic->ic_dev->priv; 4829 4830 ath_rate_node_cleanup(sc, ATH_NODE(ni)); 4831 sc->sc_node_free(ni); 4842 struct ath_softc *sc = NULL; 4843 if (ni != NULL) { 4844 if ((ni->ni_ic != NULL) && (ni->ni_ic->ic_dev != NULL)) 4845 sc = ni->ni_ic->ic_dev->priv; 4846 ath_rate_node_cleanup(sc, ATH_NODE(ni)); 4847 sc->sc_node_free(ni); 4848 } 4832 4849 #ifdef ATH_SUPERG_XR 4833 ath_grppoll_period_update(sc); 4850 if (sc != NULL) 4851 ath_grppoll_period_update(sc); 4834 4852 #endif 4835 4853 } 4836 4854
