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]
/
drivers
/
cpufreq
/
bmips-cpufreq.c
diff --git
a/drivers/cpufreq/bmips-cpufreq.c
b/drivers/cpufreq/bmips-cpufreq.c
index 1653151b77df31b9e78c039a9bf8f9df5dd89f0d..56a4ebbf00e02479b17cb3eb4efc1d2c830adefd 100644
(file)
--- a/
drivers/cpufreq/bmips-cpufreq.c
+++ b/
drivers/cpufreq/bmips-cpufreq.c
@@
-71,7
+71,7
@@
bmips_cpufreq_get_freq_table(const struct cpufreq_policy *policy)
cpu_freq = htp_freq_to_cpu_freq(priv->clk_mult);
- table = kmalloc
((priv->max_freqs + 1) *
sizeof(*table), GFP_KERNEL);
+ table = kmalloc
_array(priv->max_freqs + 1,
sizeof(*table), GFP_KERNEL);
if (!table)
return ERR_PTR(-ENOMEM);