diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-11-06 14:22:37 -0800 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-11-17 15:37:49 -0700 |
| commit | 7c585e2f72633f5577b872baca6367f735ff1eec (patch) | |
| tree | 78da3e1c5c94cdf92352eed66f4c437463fc72b8 /kernel/debug | |
| parent | b8183f9259b55fd79ecd0f2039bb4e9393eac936 (diff) | |
cxl/test: Free the decoder registry when cxl_test_init() fails
Decoder registry entries persist across mock device removal to support
topology replay. Sashiko review found that if cxl_test_init() fails after
decoders are enumerated, the entries leak because cxl_test_exit() is never
called.
Free the registry entries and destroy the xarray during error unwind.
Fixes: f3b1d2260703 ("tools/testing/cxl: Enable replay of user regions as auto regions")
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Link: https://patch.msgid.link/20261106222240.958402-1-alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
