projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[linux-block.git]
/
net
/
mac80211
/
rc80211_minstrel.c
diff --git
a/net/mac80211/rc80211_minstrel.c
b/net/mac80211/rc80211_minstrel.c
index 8221bc5582abf74251a6c76550e1a8dce71538e3..7fadfbca9f1b09d2c658e3cfe761aea3aa70e7e5 100644
(file)
--- a/
net/mac80211/rc80211_minstrel.c
+++ b/
net/mac80211/rc80211_minstrel.c
@@
-596,7
+596,7
@@
minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)
if (!mi->r)
goto error;
- mi->sample_table = kmalloc
(SAMPLE_COLUMNS * max_rates
, gfp);
+ mi->sample_table = kmalloc
_array(max_rates, SAMPLE_COLUMNS
, gfp);
if (!mi->sample_table)
goto error1;