madwifi: remove some leftover duplicate definitions
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 364-memory_alloc.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -539,8 +539,8 @@ ath_attach(u_int16_t devid, struct net_d
4
5 /* Allocate space for dynamically determined maximum VAP count */
6 sc->sc_bslot =
7 - kmalloc(ath_maxvaps * sizeof(struct ieee80211vap), GFP_KERNEL);
8 - memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap));
9 + kmalloc(ath_maxvaps * sizeof(struct ieee80211vap*), GFP_KERNEL);
10 + memset(sc->sc_bslot, 0, ath_maxvaps * sizeof(struct ieee80211vap*));
11
12 /*
13 * Cache line size is used to size and align various