cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()
authorBreno Leitao <leitao@debian.org>
Fri, 14 Jul 2023 09:31:46 +0000 (02:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:24:04 +0000 (10:24 +0200)
commit6806494ed4a0b71c5c44c583b3d1b7705bc60006
tree876afe80249ce840b68250bf1124a776241d6656
parent748fadc08bcbdaf573b34d9784bb3dbd87441dbf
cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()

[ Upstream commit 91019b5bc7c2c5e6f676cce80ee6d12b2753d018 ]

Driver initialization returned success (return 0) even if the
initialization (cxl_decoder_add() or acpi_table_parse_cedt()) failed.

Return the error instead of swallowing it.

Fixes: f4ce1f766f1e ("cxl/acpi: Convert CFMWS parsing to ACPI sub-table helpers")
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20230714093146.2253438-2-leitao@debian.org
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cxl/acpi.c