treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / net / mac80211 / rc80211_minstrel_ht.c
index 267ab9d..67ebdea 100644 (file)
@@ -1313,7 +1313,7 @@ minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)
        if (!msp)
                return NULL;
 
-       msp->ratelist = kzalloc(sizeof(struct minstrel_rate) * max_rates, gfp);
+       msp->ratelist = kcalloc(max_rates, sizeof(struct minstrel_rate), gfp);
        if (!msp->ratelist)
                goto error;