Skip to content

Commit 2aa765a

Browse files
krzkgregkh
authored andcommitted
usb: dwc3: omap: add missing depopulate in probe error path
Depopulate device in probe error paths to fix leak of children resources. Fixes: ee249b4 ("usb: dwc3: omap: remove IRQ_NOAUTOEN used with shared irq") Cc: stable@vger.kernel.org Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://lore.kernel.org/r/20240816075409.23080-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5b23569 commit 2aa765a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/usb/dwc3/dwc3-omap.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,13 @@ static int dwc3_omap_probe(struct platform_device *pdev)
522522
if (ret) {
523523
dev_err(dev, "failed to request IRQ #%d --> %d\n",
524524
omap->irq, ret);
525-
goto err1;
525+
goto err2;
526526
}
527527
dwc3_omap_enable_irqs(omap);
528528
return 0;
529529

530+
err2:
531+
of_platform_depopulate(dev);
530532
err1:
531533
pm_runtime_put_sync(dev);
532534
pm_runtime_disable(dev);

0 commit comments

Comments
 (0)