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
Merge tag 'v5.2' into next
[linux-2.6-microblaze.git]
/
drivers
/
cpufreq
/
bmips-cpufreq.c
diff --git
a/drivers/cpufreq/bmips-cpufreq.c
b/drivers/cpufreq/bmips-cpufreq.c
index
1653151
..
56a4ebb
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);