Skip to content

Commit

Permalink
Merge branch 'pm-cpufreq'
Browse files Browse the repository at this point in the history
* pm-cpufreq:
  cpufreq / OPP: Fix the order of arguments for kcalloc()
  • Loading branch information
Rafael J. Wysocki committed Sep 11, 2014
2 parents 2ce7598 + d359992 commit 1c00f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq_opp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1c00f73

Please sign in to comment.