* Re: [PATCH] cpufreq_opp: Fixed the order of argument for kcalloc. [not found] <1408180966-15493-1-git-send-email-moon.linux@yahoo.com> @ 2014-08-18 7:30 ` Viresh Kumar 2014-09-04 21:07 ` Stephen Boyd 1 sibling, 0 replies; 3+ messages in thread From: Viresh Kumar @ 2014-08-18 7:30 UTC (permalink / raw) To: Anand Moon Cc: Rafael J. Wysocki, Stephen Boyd, linux-pm@vger.kernel.org, Linux Kernel Mailing List On 16 August 2014 14:52, Anand Moon <moon.linux@yahoo.com> wrote: > 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_t size, gfp_t flags) > > Signed-off-by: Anand Moon <moon.linux@yahoo.com> > --- > drivers/cpufreq/cpufreq_opp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cpufreq_opp.c b/drivers/cpufreq/cpufreq_opp.c > index f7a32d2..773bcde 100644 > --- a/drivers/cpufreq/cpufreq_opp.c > +++ b/drivers/cpufreq/cpufreq_opp.c > @@ -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; Fixes: 3c5445c cpufreq: OPP: Avoid sleeping while atomic Acked-by: Viresh Kumar <viresh.kumar@linaro.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq_opp: Fixed the order of argument for kcalloc. [not found] <1408180966-15493-1-git-send-email-moon.linux@yahoo.com> 2014-08-18 7:30 ` [PATCH] cpufreq_opp: Fixed the order of argument for kcalloc Viresh Kumar @ 2014-09-04 21:07 ` Stephen Boyd 2014-09-04 23:48 ` Rafael J. Wysocki 1 sibling, 1 reply; 3+ messages in thread From: Stephen Boyd @ 2014-09-04 21:07 UTC (permalink / raw) To: Anand Moon, rjw, viresh.kumar; +Cc: linux-pm, linux-kernel On 08/16/14 02:22, Anand Moon wrote: > 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_t size, gfp_t flags) > > Signed-off-by: Anand Moon <moon.linux@yahoo.com> > --- Oops. Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Can this be picked up? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq_opp: Fixed the order of argument for kcalloc. 2014-09-04 21:07 ` Stephen Boyd @ 2014-09-04 23:48 ` Rafael J. Wysocki 0 siblings, 0 replies; 3+ messages in thread From: Rafael J. Wysocki @ 2014-09-04 23:48 UTC (permalink / raw) To: Stephen Boyd; +Cc: Anand Moon, viresh.kumar, linux-pm, linux-kernel On Thursday, September 04, 2014 02:07:49 PM Stephen Boyd wrote: > On 08/16/14 02:22, Anand Moon wrote: > > 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_t size, gfp_t flags) > > > > Signed-off-by: Anand Moon <moon.linux@yahoo.com> > > --- > > Oops. > > Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> > > 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-04 23:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1408180966-15493-1-git-send-email-moon.linux@yahoo.com>
2014-08-18 7:30 ` [PATCH] cpufreq_opp: Fixed the order of argument for kcalloc Viresh Kumar
2014-09-04 21:07 ` Stephen Boyd
2014-09-04 23:48 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox