huge madwifi update (work in progress, disabled by default, compiles but breaks at...
[librecmc/librecmc.git] / package / madwifi / patches-r3776 / 328-memory_alloc.patch
1 Index: madwifi-trunk-r3776/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3776.orig/ath/if_ath.c       2008-07-17 04:00:42.000000000 +0200
4 +++ madwifi-trunk-r3776/ath/if_ath.c    2008-07-17 04:11:45.000000000 +0200
5 @@ -504,7 +504,7 @@
6  
7         /* Allocate space for dynamically determined maximum VAP count */
8         sc->sc_bslot = 
9 -               kzalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
10 +               kzalloc(ath_maxvaps * sizeof(struct ieee80211vap *), GFP_KERNEL);
11  
12         /*
13          * Cache line size is used to size and align various