Jelajahi Sumber

Merge branch 'pm-cpufreq'

* pm-cpufreq:
  cpufreq / OPP: Fix the order of arguments for kcalloc()
Rafael J. Wysocki 11 tahun lalu
induk
melakukan
1c00f73c83
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      drivers/cpufreq/cpufreq_opp.c

+ 1 - 1
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;