diff options
| author | Dave Jiang <dave.jiang@intel.com> | 2026-06-11 16:03:55 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-11 18:08:02 -0700 |
| commit | 50cc34be04a0ea7522b739c9c7a71367cfbc489c (patch) | |
| tree | 48d62fb612d3a2a5e0c667eaeade2e18c28c51bb /drivers/phy/spacemit/git@git.tavy.me:linux.git | |
| parent | 60f065dbaf46e65830da62a0041761f0c039e086 (diff) | |
cxl/test: Unregister cxl_acpi in cxl_test_init() error path
In cxl_test_init(), Once cxl_mock_platform_device_add() succeeds, all
error paths after needs to call platform_device_unregister() instead of
platform_device_put() to clean up.
Fixes: 67dcdd4d3b83 ("tools/testing/cxl: Introduce a mocked-up CXL port hierarchy")
Reported-by: sashiko-bot
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260611230355.198912-1-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'drivers/phy/spacemit/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
