cpufreq_opp: Fixed the order of argument for kcalloc.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Viresh Kumar
Acked-byQuoted 17 lines · Anand Moon
These changes fix the argument to the kcalloc
@n: number of elements.
@size: element size.
@flags: the type of memory to allocate (see kmalloc).void *kcalloc(size_t n,
size_tsize,gfp_tflags)Signed-off-by Anand Moon <[email protected]>--- drivers/cpufreq/cpufreq_opp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/cpufreq_opp.c +0
-0
drivers/cpufreq/cpufreq_opp.c int dev_pm_opp_init_cpufreq_table(struct device *dev, · line 66
Quoted 8 lines
drivers/cpufreq/cpufreq_opp.c +1
-1@@ -60,7 +60,7 @@ int dev_pm_opp_init_cpufreq_table(struct device *dev, goto out; } - freq_table =kcalloc (sizeof (*freq_table), (max_opps +1 ),GFP_ATOMIC ); + freq_table =kcalloc ((max_opps +1 ),sizeof (*freq_table),GFP_ATOMIC );if (!freq_table) { ret = -ENOMEM ; goto out;
Stephen Boyd
Reviewed-byQuoted 9 lines · Anand Moon
These changes fix the argument to the kcalloc
@n: number of elements.
@size: element size.
@flags: the type of memory to allocate (see kmalloc).void *kcalloc(size_t n,
size_tsize,gfp_tflags)Signed-off-by Anand Moon <[email protected]>---
Oops.
Can this be picked up?
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Quoted 8 lines · Stephen Boyd
Quoted 7 lines · Anand Moon
These changes fix the argument to the kcalloc
@n: number of elements.
@size: element size.
@flags: the type of memory to allocate (see kmalloc).void *kcalloc(size_t n,
size_tsize,gfp_tflags)
Quoted 8 lines
Quoted 2 lines
Signed-off-by Anand Moon <[email protected]>---
Oops.
Reviewed-by Stephen Boyd <[email protected]>Can this be picked up?
It could be if I could find it. Which is not the case, unfortunately.
Anybody care to resend it?
Rafael