Skip to content

Commit

Permalink
acpi: fix "buggy BIOS check" when CPUs are hot removed
Browse files Browse the repository at this point in the history
Fixes a BUG in ACPI hotplugging.

processor_device_array[pr->id] needs to be set to NULL when removing a CPU.
Else the "buggy BIOS check" in acpi_processor_start mistakenly fires when a
CPU is removed from the system and then later re-added.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Signed-off-by: Dan Arai <arai@vmware.com>
Cc: Len Brown <lenb@kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alok Kataria authored and Linus Torvalds committed Apr 9, 2008
1 parent 4b47c97 commit ba62b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
}

processors[pr->id] = NULL;

processor_device_array[pr->id] = NULL;
kfree(pr);

return 0;
Expand Down

0 comments on commit ba62b07

Please sign in to comment.