OSDN Git Service

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / cpufreq / acpi-cpufreq.c
index d5eaedb..000e4e0 100644 (file)
@@ -754,7 +754,7 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
                goto err_unreg;
        }
 
-       data->freq_table = kmalloc(sizeof(*data->freq_table) *
+       data->freq_table = kzalloc(sizeof(*data->freq_table) *
                    (perf->state_count+1), GFP_KERNEL);
        if (!data->freq_table) {
                result = -ENOMEM;