aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-26 10:17:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-01-26 10:17:22 +0000
commit301d317458f0e10cca180e8bfb6def2115c9a84e (patch)
tree0351cece6e7f0428adc7088f6ea8f0c4819735a5 /package/madwifi/patches
parent8a61d357646c9a80d1793b2f87e65fa1c93a5585 (diff)
downloadupstream-301d317458f0e10cca180e8bfb6def2115c9a84e.tar.gz
upstream-301d317458f0e10cca180e8bfb6def2115c9a84e.tar.bz2
upstream-301d317458f0e10cca180e8bfb6def2115c9a84e.zip
do not use kzalloc() in madwifi, for compatibility reasons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10272 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/320-no_kzalloc.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/madwifi/patches/320-no_kzalloc.patch b/package/madwifi/patches/320-no_kzalloc.patch
new file mode 100644
index 0000000000..47fff71fb6
--- /dev/null
+++ b/package/madwifi/patches/320-no_kzalloc.patch
@@ -0,0 +1,32 @@
+Index: madwifi-dfs-r3252/ath/if_ath.c
+===================================================================
+--- madwifi-dfs-r3252.orig/ath/if_ath.c 2008-01-26 11:12:45.731030258 +0100
++++ madwifi-dfs-r3252/ath/if_ath.c 2008-01-26 11:14:38.985484262 +0100
+@@ -529,7 +529,8 @@
+
+ /* Allocate space for dynamically determined maximum VAP count */
+ sc->sc_bslot =
+- kzalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
++ kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
++ memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
+
+ /*
+ * Cache line size is used to size and align various
+Index: madwifi-dfs-r3252/ath/if_ath_radar.c
+===================================================================
+--- madwifi-dfs-r3252.orig/ath/if_ath_radar.c 2008-01-26 11:14:48.638034327 +0100
++++ madwifi-dfs-r3252/ath/if_ath_radar.c 2008-01-26 11:15:36.740775546 +0100
+@@ -1556,9 +1556,11 @@
+
+ ath_rp_clear(sc);
+
+- sc->sc_rp = (struct ath_rp *)kzalloc(
+- sizeof(struct ath_rp) *
++ sc->sc_rp = (struct ath_rp *)kmalloc(
++ sizeof(struct ath_rp) *
+ ATH_RADAR_PULSE_NR, GFP_KERNEL);
++ memset(sc->sc_rp, 0, sizeof(struct ath_rp) *
++ ATH_RADAR_PULSE_NR);
+
+ if (sc->sc_rp == NULL)
+ return;