madwifi: nuke some weird code which is causing NULL nodes to appear
[openwrt.git] / package / madwifi / patches / 320-no_kzalloc.patch
1 Index: madwifi-dfs-r3252/ath/if_ath.c
2 ===================================================================
3 --- madwifi-dfs-r3252.orig/ath/if_ath.c 2008-01-26 11:12:45.731030258 +0100
4 +++ madwifi-dfs-r3252/ath/if_ath.c 2008-01-26 11:14:38.985484262 +0100
5 @@ -529,7 +529,8 @@
6
7 /* Allocate space for dynamically determined maximum VAP count */
8 sc->sc_bslot =
9 - kzalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
10 + kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
11 + memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
12
13 /*
14 * Cache line size is used to size and align various
15 Index: madwifi-dfs-r3252/ath/if_ath_radar.c
16 ===================================================================
17 --- madwifi-dfs-r3252.orig/ath/if_ath_radar.c 2008-01-26 11:14:48.638034327 +0100
18 +++ madwifi-dfs-r3252/ath/if_ath_radar.c 2008-01-26 11:15:36.740775546 +0100
19 @@ -1556,9 +1556,11 @@
20
21 ath_rp_clear(sc);
22
23 - sc->sc_rp = (struct ath_rp *)kzalloc(
24 - sizeof(struct ath_rp) *
25 + sc->sc_rp = (struct ath_rp *)kmalloc(
26 + sizeof(struct ath_rp) *
27 ATH_RADAR_PULSE_NR, GFP_KERNEL);
28 + memset(sc->sc_rp, 0, sizeof(struct ath_rp) *
29 + ATH_RADAR_PULSE_NR);
30
31 if (sc->sc_rp == NULL)
32 return;
This page took 0.043051 seconds and 5 git commands to generate.