madwifi patch cleanup and stability fixes
[openwrt.git] / package / madwifi / patches-testing / 328-memory_alloc.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -504,7 +504,7 @@
4  
5         /* Allocate space for dynamically determined maximum VAP count */
6         sc->sc_bslot = 
7 -               kzalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
8 +               kzalloc(ath_maxvaps * sizeof(struct ieee80211vap *), GFP_KERNEL);
9  
10         /*
11          * Cache line size is used to size and align various