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 <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>

Changed files
+2 -2
tools
testing
cxl
test
+2 -2
tools/testing/cxl/test/cxl.c
··· 695 696 pdev = platform_device_alloc("cxl_switch_uport", i); 697 if (!pdev) 698 - goto err_port; 699 pdev->dev.parent = &root_port->dev; 700 701 rc = platform_device_add(pdev); ··· 713 714 pdev = platform_device_alloc("cxl_switch_dport", i); 715 if (!pdev) 716 - goto err_port; 717 pdev->dev.parent = &uport->dev; 718 719 rc = platform_device_add(pdev);
··· 695 696 pdev = platform_device_alloc("cxl_switch_uport", i); 697 if (!pdev) 698 + goto err_uport; 699 pdev->dev.parent = &root_port->dev; 700 701 rc = platform_device_add(pdev); ··· 713 714 pdev = platform_device_alloc("cxl_switch_dport", i); 715 if (!pdev) 716 + goto err_dport; 717 pdev->dev.parent = &uport->dev; 718 719 rc = platform_device_add(pdev);