Skip to content

Commit

Permalink
ACPI: fix acpi_hest_firmware_first_pci() caused oops
Browse files Browse the repository at this point in the history
acpi_hest_firmware_first_pci() could be called when acpi is disabled
and cause system oops.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Shaohua Li authored and Len Brown committed May 6, 2010
1 parent 97c227c commit 4bdae98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/acpi/hest.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ int acpi_hest_firmware_first_pci(struct pci_dev *pci)
{
acpi_status status = AE_NOT_FOUND;
struct acpi_table_header *hest = NULL;

if (acpi_disabled)
return 0;

status = acpi_get_table(ACPI_SIG_HEST, 1, &hest);

if (ACPI_SUCCESS(status)) {
Expand Down

0 comments on commit 4bdae98

Please sign in to comment.