Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dwc3: google: Fix PM domain leak in dwc3_google_probe()

When syscon_regmap_lookup_by_phandle_args() fails, the function was
returning directly without cleaning up the power domain initialized
earlier by dwc3_google_pm_domain_init().

Fix by jumping to err_deinit_pdom to properly clean up resources.

Fixes: 8995a37371bf4 ("usb: dwc3: Add Google Tensor SoC DWC3 glue driver")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://patch.msgid.link/20260316-dwc3-google-v1-1-c9bde1b02f62@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Felix Gu and committed by
Greg Kroah-Hartman
1a122198 f97e96c3

+3 -2
+3 -2
drivers/usb/dwc3/dwc3-google.c
··· 385 385 "google,usb-cfg-csr", 386 386 ARRAY_SIZE(args), args); 387 387 if (IS_ERR(google->usb_cfg_regmap)) { 388 - return dev_err_probe(dev, PTR_ERR(google->usb_cfg_regmap), 389 - "invalid usb cfg csr\n"); 388 + ret = dev_err_probe(dev, PTR_ERR(google->usb_cfg_regmap), 389 + "invalid usb cfg csr\n"); 390 + goto err_deinit_pdom; 390 391 } 391 392 392 393 google->host_cfg_offset = args[0];