projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
net
/
mac80211
/
rc80211_minstrel_ht.c
diff --git
a/net/mac80211/rc80211_minstrel_ht.c
b/net/mac80211/rc80211_minstrel_ht.c
index
267ab9d
..
67ebdea
100644
(file)
--- a/
net/mac80211/rc80211_minstrel_ht.c
+++ b/
net/mac80211/rc80211_minstrel_ht.c
@@
-1313,7
+1313,7
@@
minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)
if (!msp)
return NULL;
- msp->ratelist = k
zalloc(sizeof(struct minstrel_rate) * max_rates
, gfp);
+ msp->ratelist = k
calloc(max_rates, sizeof(struct minstrel_rate)
, gfp);
if (!msp->ratelist)
goto error;