treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / net / mac80211 / rc80211_minstrel.c
index 7fadfbc..76048b5 100644 (file)
@@ -592,7 +592,7 @@ minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)
                        max_rates = sband->n_bitrates;
        }
 
-       mi->r = kzalloc(sizeof(struct minstrel_rate) * max_rates, gfp);
+       mi->r = kcalloc(max_rates, sizeof(struct minstrel_rate), gfp);
        if (!mi->r)
                goto error;