Skip to content
Commit 9368aa18 authored by Li Yang's avatar Li Yang Committed by Rafael J. Wysocki
Browse files

APEI: GHES: correctly return NULL for ghes_get_devices()



Since 315bada6 ("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: 9057a3f7 ("EDAC/ghes: Prepare to make ghes_edac a proper module")
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
Reviewed-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d38f6bce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment