Skip to content

Commit bf900af

Browse files
committed
Merge branch 'acpi-cleanup' into fixes
* acpi-cleanup: ACPI / APEI: Fix crash in apei_hest_parse() for acpi=off
2 parents d3caf89 + a84363d commit bf900af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/acpi/apei/hest.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int apei_hest_parse(apei_hest_func_t func, void *data)
8989
struct acpi_hest_header *hest_hdr;
9090
int i, rc, len;
9191

92-
if (hest_disable)
92+
if (hest_disable || !hest_tab)
9393
return -EINVAL;
9494

9595
hest_hdr = (struct acpi_hest_header *)(hest_tab + 1);
@@ -216,9 +216,6 @@ void __init acpi_hest_init(void)
216216
return;
217217
}
218218

219-
if (acpi_disabled)
220-
goto err;
221-
222219
status = acpi_get_table(ACPI_SIG_HEST, 0,
223220
(struct acpi_table_header **)&hest_tab);
224221
if (status == AE_NOT_FOUND)

0 commit comments

Comments
 (0)