]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cxl/pci: Fix potential bogus return value upon successful probing
authorDavidlohr Bueso <dave@stgolabs.net>
Fri, 15 Nov 2024 17:00:32 +0000 (09:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:01 +0000 (14:02 +0100)
commit87d5a852f0bc2f7b9d6dfdb6db0bdb0740ef2717
treeebbebec173ab0d34e5c18c02704d2979d32545d9
parentd72139fa20246bb0be8c94d9dc1d0a5a015f345a
cxl/pci: Fix potential bogus return value upon successful probing

[ Upstream commit da4d8c83358163df9a4addaeba0ef8bcb03b22e8 ]

If cxl_pci_ras_unmask() returns non-zero, cxl_pci_probe() will end up
returning that value, instead of zero.

Fixes: 248529edc86f ("cxl: add RAS status unmasking for CXL")
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/20241115170032.108445-1-dave@stgolabs.net
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cxl/pci.c