Files
linux/drivers/acpi
Li Yang 34f251a654 APEI: GHES: correctly return NULL for ghes_get_devices()
[ Upstream commit 9368aa1882 ]

Since 315bada690 ("EDAC: Check for GHES preference in the
chipset-specific EDAC drivers"), vendor specific EDAC driver will not
probe correctly when CONFIG_ACPI_APEI_GHES is enabled but no GHES device
is present.  Make ghes_get_devices() return NULL when the GHES device
list is empty to fix the problem.

Fixes: 9057a3f7ac ("EDAC/ghes: Prepare to make ghes_edac a proper module")
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-11 19:39:24 +02:00
..
2022-10-03 20:09:22 +02:00
2020-11-09 19:25:20 +01:00
2022-05-25 15:37:07 +02:00
2022-11-10 20:21:35 +01:00
2022-01-22 08:33:37 +02:00
2022-09-30 20:05:16 +02:00
2020-11-09 19:08:06 +01:00
2022-12-30 18:39:09 +01:00
2022-10-03 20:09:22 +02:00
2020-11-09 19:08:06 +01:00