diff options
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cppc_cpufreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 3464580ac3ca..a9d3eec32795 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c | |||
@@ -313,7 +313,8 @@ static int __init cppc_cpufreq_init(void) | |||
313 | if (acpi_disabled) | 313 | if (acpi_disabled) |
314 | return -ENODEV; | 314 | return -ENODEV; |
315 | 315 | ||
316 | all_cpu_data = kzalloc(sizeof(void *) * num_possible_cpus(), GFP_KERNEL); | 316 | all_cpu_data = kcalloc(num_possible_cpus(), sizeof(void *), |
317 | GFP_KERNEL); | ||
317 | if (!all_cpu_data) | 318 | if (!all_cpu_data) |
318 | return -ENOMEM; | 319 | return -ENOMEM; |
319 | 320 | ||