Skip to content

Commit

Permalink
[PATCH] powernow-k8 crash workaround
Browse files Browse the repository at this point in the history
From: Andrew Morton <[email protected]>

Work around the oops reported in
http://bugzilla.kernel.org/show_bug.cgi?id=6478.

Thanks to Ralf Hildebrandt <[email protected]> for testing and
reporting.

Acked-by: Dave Jones <[email protected]>
Cc: "Brown, Len" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 10, 2006
1 parent 670bd95 commit a913f50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 a913f50

Please sign in to comment.