summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/364-memory_alloc.patch
blob: d0d76a1792180b30536e0b6acb67c2347033d2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/ath/if_ath.c
+++ b/ath/if_ath.c
@@ -539,8 +539,8 @@
 
 	/* Allocate space for dynamically determined maximum VAP count */
 	sc->sc_bslot = 
-		kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
-	memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
+		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