Skip to content
Commit 008b08ab authored by Dan Williams's avatar Dan Williams Committed by Greg Kroah-Hartman
Browse files

cxl/region: Cleanup target list on attach error



[ Upstream commit 86987c76 ]

Jonathan noticed that the target list setup is not unwound completely
upon error. Undo all the setup in the 'err_decrement:' exit path.

Fixes: 27b3f8d1 ("cxl/region: Program target lists")
Reported-by: default avatarJonathan Cameron <Jonathan.Cameron@Huawei.com>
Link: http://lore.kernel.org/r/20230208123031.00006990@Huawei.com


Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarVishal Verma <vishal.l.verma@intel.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/167601996980.1924368.390423634911157277.stgit@dwillia2-xfh.jf.intel.com


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Stable-dep-of: 0718588c ("cxl/region: Do not try to cleanup after cxl_region_setup_targets() fails")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 93d242f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment