Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211249
b: refs/heads/master
c: 3682930
h: refs/heads/master
i:
  211247: 6e2e451
v: v3
  • Loading branch information
Pekka Enberg authored and Dave Jones committed Sep 30, 2010
1 parent 470a8cf commit 7f40d97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: 86cf1474948a91c67b3dd58f8b360006c82e0068
refs/heads/master: 3682930623f63c693845d9620c6bcdf5598c9bbb
18 changes: 12 additions & 6 deletions trunk/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,16 +368,22 @@ static int __init pcc_cpufreq_do_osc(acpi_handle *handle)
return -ENODEV;

out_obj = output.pointer;
if (out_obj->type != ACPI_TYPE_BUFFER)
return -ENODEV;
if (out_obj->type != ACPI_TYPE_BUFFER) {
ret = -ENODEV;
goto out_free;
}

errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0);
if (errors)
return -ENODEV;
if (errors) {
ret = -ENODEV;
goto out_free;
}

supported = *((u32 *)(out_obj->buffer.pointer + 4));
if (!(supported & 0x1))
return -ENODEV;
if (!(supported & 0x1)) {
ret = -ENODEV;
goto out_free;
}

out_free:
kfree(output.pointer);
Expand Down

0 comments on commit 7f40d97

Please sign in to comment.