Skip to content

Commit

Permalink
tools/testing/cxl: Fix some error exits
Browse files Browse the repository at this point in the history
[ Upstream commit 86e86c3 ]

Fix a few typos where 'goto err_port' was used rather than the object
specific cleanup.

Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/166752184255.947915.16163477849330181425.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
djbw authored and gregkh committed Nov 26, 2022
1 parent 2fbc8db commit 7d73714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/cxl/test/cxl.c
Expand Up @@ -695,7 +695,7 @@ static __init int cxl_test_init(void)

pdev = platform_device_alloc("cxl_switch_uport", i);
if (!pdev)
goto err_port;
goto err_uport;
pdev->dev.parent = &root_port->dev;

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

pdev = platform_device_alloc("cxl_switch_dport", i);
if (!pdev)
goto err_port;
goto err_dport;
pdev->dev.parent = &uport->dev;

rc = platform_device_add(pdev);
Expand Down

0 comments on commit 7d73714

Please sign in to comment.