Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163089
b: refs/heads/master
c: 059019a
h: refs/heads/master
i:
  163087: 89b2425
v: v3
  • Loading branch information
Dave Jones committed Sep 1, 2009
1 parent bc2cf3a commit 1d8e0ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54e6fe167b8787460ee39e7c333b96e3e2e6a196
refs/heads/master: 059019a3c3353b15d8efac5301f72036cc408bd4
15 changes: 6 additions & 9 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,19 +798,16 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
goto module_out;
}

ret = -ENOMEM;
policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL);
if (!policy) {
ret = -ENOMEM;
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));
Expand Down

0 comments on commit 1d8e0ca

Please sign in to comment.