OpenCloudOS-Kernel/drivers/acpi/apei
Aili Yao 4fba15fbb8 ACPI, APEI, Fix error return value in apei_map_generic_address()
From commit 6915564dc5 ("ACPI: OSL: Change the type of
acpi_os_map_generic_address() return value"),
acpi_os_map_generic_address() will return logical address or NULL
for error, but for ACPI_ADR_SPACE_SYSTEM_IO case, it should be also
return 0 as it's a normal case, but now it will return -ENXIO.

So check it out for such case to avoid einj module initialization
fail.

Fixes: 6915564dc5 ("ACPI: OSL: Change the type of acpi_os_map_generic_address() return value")
Cc: <stable@vger.kernel.org>
Reviewed-by: James Morse <james.morse@arm.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Aili Yao <yaoaili@kingsoft.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-11-16 19:27:37 +01:00
..
Kconfig ACPI / APEI: Switch NOTIFY_SEA to use the estatus queue 2019-02-07 23:10:45 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
apei-base.c ACPI, APEI, Fix error return value in apei_map_generic_address() 2020-11-16 19:27:37 +01:00
apei-internal.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bert.c ACPI: APEI: Put the boot error record table after parsing 2020-05-09 11:29:17 +02:00
einj.c ACPI: APEI: Put the error injection table for error path and module exit 2020-05-09 11:29:17 +02:00
erst-dbg.c acpi: Use pr_warn instead of pr_warning 2019-10-18 15:00:19 +02:00
erst.c ACPI: APEI: Put the error record serialization table for error path 2020-05-09 11:29:17 +02:00
ghes.c arch-cleanup-2020-10-22 2020-10-23 10:06:38 -07:00
hest.c ACPI: APEI: remove redundant assignment to variable rc 2020-07-27 15:22:58 +02:00