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: [email protected] Acked-by: Thinh Nguyen <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Radhey Shyam Pandey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5b23569 commit 2aa765a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)