Skip to content

Commit

Permalink
Merge branch 'acpi-cleanup' into fixes
Browse files Browse the repository at this point in the history
* acpi-cleanup:
  ACPI / APEI: Fix crash in apei_hest_parse() for acpi=off
  • Loading branch information
Rafael J. Wysocki committed Feb 22, 2013
2 parents d3caf89 + a84363d commit bf900af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/acpi/apei/hest.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int apei_hest_parse(apei_hest_func_t func, void *data)
struct acpi_hest_header *hest_hdr;
int i, rc, len;

if (hest_disable)
if (hest_disable || !hest_tab)
return -EINVAL;

hest_hdr = (struct acpi_hest_header *)(hest_tab + 1);
Expand Down Expand Up @@ -216,9 +216,6 @@ void __init acpi_hest_init(void)
return;
}

if (acpi_disabled)
goto err;

status = acpi_get_table(ACPI_SIG_HEST, 0,
(struct acpi_table_header **)&hest_tab);
if (status == AE_NOT_FOUND)
Expand Down

0 comments on commit bf900af

Please sign in to comment.