diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-22 18:42:01 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-22 18:42:01 -0500 |
commit | bf900afba96bf34038bf2c944bbcad7424a40051 (patch) | |
tree | e342590634b304feda22aeff7ab3346b808f9fe7 /drivers/acpi/apei | |
parent | d3caf89433755279caa0196c093a87fc5e63bd36 (diff) | |
parent | a84363d6fdba14663b6b155eec604b6c0f6f8866 (diff) |
Merge branch 'acpi-cleanup' into fixes
* acpi-cleanup:
ACPI / APEI: Fix crash in apei_hest_parse() for acpi=off
Diffstat (limited to 'drivers/acpi/apei')
-rw-r--r-- | drivers/acpi/apei/hest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 7f00cf38098f..f5ef5d54e4ac 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c | |||
@@ -89,7 +89,7 @@ int apei_hest_parse(apei_hest_func_t func, void *data) | |||
89 | struct acpi_hest_header *hest_hdr; | 89 | struct acpi_hest_header *hest_hdr; |
90 | int i, rc, len; | 90 | int i, rc, len; |
91 | 91 | ||
92 | if (hest_disable) | 92 | if (hest_disable || !hest_tab) |
93 | return -EINVAL; | 93 | return -EINVAL; |
94 | 94 | ||
95 | hest_hdr = (struct acpi_hest_header *)(hest_tab + 1); | 95 | hest_hdr = (struct acpi_hest_header *)(hest_tab + 1); |
@@ -216,9 +216,6 @@ void __init acpi_hest_init(void) | |||
216 | return; | 216 | return; |
217 | } | 217 | } |
218 | 218 | ||
219 | if (acpi_disabled) | ||
220 | goto err; | ||
221 | |||
222 | status = acpi_get_table(ACPI_SIG_HEST, 0, | 219 | status = acpi_get_table(ACPI_SIG_HEST, 0, |
223 | (struct acpi_table_header **)&hest_tab); | 220 | (struct acpi_table_header **)&hest_tab); |
224 | if (status == AE_NOT_FOUND) | 221 | if (status == AE_NOT_FOUND) |