Skip to content

Commit 86e86c3

Browse files
committed
tools/testing/cxl: Fix some error exits
Fix a few typos where 'goto err_port' was used rather than the object specific cleanup. Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Vishal Verma <[email protected]> Link: https://lore.kernel.org/r/166752184255.947915.16163477849330181425.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <[email protected]>
1 parent 4d07ae2 commit 86e86c3

File tree

1 file changed

+2
-2
lines changed
  • tools/testing/cxl/test

1 file changed

+2
-2
lines changed

tools/testing/cxl/test/cxl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static __init int cxl_test_init(void)
695695

696696
pdev = platform_device_alloc("cxl_switch_uport", i);
697697
if (!pdev)
698-
goto err_port;
698+
goto err_uport;
699699
pdev->dev.parent = &root_port->dev;
700700

701701
rc = platform_device_add(pdev);
@@ -713,7 +713,7 @@ static __init int cxl_test_init(void)
713713

714714
pdev = platform_device_alloc("cxl_switch_dport", i);
715715
if (!pdev)
716-
goto err_port;
716+
goto err_dport;
717717
pdev->dev.parent = &uport->dev;
718718

719719
rc = platform_device_add(pdev);

0 commit comments

Comments
 (0)