Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27173
b: refs/heads/master
c: a913f50
h: refs/heads/master
i:
  27171: 9915c7a
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 10, 2006
1 parent 7fd8df1 commit 81ee51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 670bd95e0413c43f878b73a4a3919d1f452a4157
refs/heads/master: a913f50706b21c7933f53cec678bb9a1c2383499
5 changes: 4 additions & 1 deletion trunk/drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ acpi_processor_register_performance(struct acpi_processor_performance
return_VALUE(-EBUSY);
}

WARN_ON(!performance);

pr->performance = performance;

if (acpi_processor_get_performance_info(pr)) {
Expand Down Expand Up @@ -609,7 +611,8 @@ acpi_processor_unregister_performance(struct acpi_processor_performance
return_VOID;
}

kfree(pr->performance->states);
if (pr->performance)
kfree(pr->performance->states);
pr->performance = NULL;

acpi_cpufreq_remove_file(pr);
Expand Down

0 comments on commit 81ee51d

Please sign in to comment.