Skip to content
Snippets Groups Projects
Commit 4bdae98f authored by Shaohua Li's avatar Shaohua Li Committed by Len Brown
Browse files

ACPI: fix acpi_hest_firmware_first_pci() caused oops


acpi_hest_firmware_first_pci() could be called when acpi is disabled
and cause system oops.

Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 97c227cb
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,10 @@ int acpi_hest_firmware_first_pci(struct pci_dev *pci) ...@@ -123,6 +123,10 @@ int acpi_hest_firmware_first_pci(struct pci_dev *pci)
{ {
acpi_status status = AE_NOT_FOUND; acpi_status status = AE_NOT_FOUND;
struct acpi_table_header *hest = NULL; struct acpi_table_header *hest = NULL;
if (acpi_disabled)
return 0;
status = acpi_get_table(ACPI_SIG_HEST, 1, &hest); status = acpi_get_table(ACPI_SIG_HEST, 1, &hest);
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment