diff options
| author | Dave Jiang <dave.jiang@intel.com> | 2026-06-29 15:11:02 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-30 10:47:30 -0700 |
| commit | 98ba41c3236b9a3bad206dbd9cf18c98ced75726 (patch) | |
| tree | 46af4e6eabd1e4bf4082b8cc07609b888d41dfb7 /scripts/Makefile.thinlto | |
| parent | 6b2e585142e68b4af821a1eca4d1e8d54bd49bb8 (diff) | |
| download | linux-next-98ba41c3236b9a3bad206dbd9cf18c98ced75726.tar.gz linux-next-98ba41c3236b9a3bad206dbd9cf18c98ced75726.zip | |
cxl/test: Propagate -ENOMEM on platform_device_alloc() failures
Set rc = -ENOMEM at every platform_device_alloc() failure site in
cxl_rch_topo_init(), cxl_single_topo_init() and cxl_test_init() so the
failure is propagated and the module load aborts cleanly.
The cxl_acpi allocation site originates in the commit below, while the
host-bridge/root-port/uport/dport allocation sites fixed here were added
later in the single-host and RCH topology configs.
Fixes: 67dcdd4d3b83 ("tools/testing/cxl: Introduce a mocked-up CXL port hierarchy")
Fixes: e41c8452b9b2 ("tools/testing/cxl: Add a single-port host-bridge regression config")
Fixes: c9435dbee119 ("tools/testing/cxl: Add an RCH topology")
Assisted-by: Claude:claude-opus-4-8
Tested-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260629221104.3891733-6-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
