Loading drivers/cpufreq/cpufreq.c +6 −9 Original line number Diff line number Diff line Loading @@ -798,19 +798,16 @@ static int cpufreq_add_dev(struct sys_device *sys_dev) goto module_out; } policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL); if (!policy) { ret = -ENOMEM; policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL); if (!policy) goto nomem_out; } if (!alloc_cpumask_var(&policy->cpus, GFP_KERNEL)) { ret = -ENOMEM; if (!alloc_cpumask_var(&policy->cpus, GFP_KERNEL)) goto err_free_policy; } if (!zalloc_cpumask_var(&policy->related_cpus, GFP_KERNEL)) { ret = -ENOMEM; if (!zalloc_cpumask_var(&policy->related_cpus, GFP_KERNEL)) goto err_free_cpumask; } policy->cpu = cpu; cpumask_copy(policy->cpus, cpumask_of(cpu)); Loading Loading
drivers/cpufreq/cpufreq.c +6 −9 Original line number Diff line number Diff line Loading @@ -798,19 +798,16 @@ static int cpufreq_add_dev(struct sys_device *sys_dev) goto module_out; } policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL); if (!policy) { ret = -ENOMEM; policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL); if (!policy) goto nomem_out; } if (!alloc_cpumask_var(&policy->cpus, GFP_KERNEL)) { ret = -ENOMEM; if (!alloc_cpumask_var(&policy->cpus, GFP_KERNEL)) goto err_free_policy; } if (!zalloc_cpumask_var(&policy->related_cpus, GFP_KERNEL)) { ret = -ENOMEM; if (!zalloc_cpumask_var(&policy->related_cpus, GFP_KERNEL)) goto err_free_cpumask; } policy->cpu = cpu; cpumask_copy(policy->cpus, cpumask_of(cpu)); Loading