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)
committerDave Jiang <dave.jiang@intel.com>
Tue, 10 Dec 2024 21:30:51 +0000 (14:30 -0700)
commitda4d8c83358163df9a4addaeba0ef8bcb03b22e8
tree9ab04fe636e8908aaf1b551530f5d5bdb29d46ae
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4
cxl/pci: Fix potential bogus return value upon successful probing

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>
drivers/cxl/pci.c