[PATCH 2/2] usb: dwc3: xilinx: add missing depopulate in probe error path
Pandey, Radhey Shyam
radhey.shyam.pandey at amd.com
Wed Aug 14 03:31:56 PDT 2024
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> Sent: Wednesday, August 14, 2024 3:49 PM
> To: Thinh Nguyen <Thinh.Nguyen at synopsys.com>; Greg Kroah-Hartman
> <gregkh at linuxfoundation.org>; Simek, Michal <michal.simek at amd.com>;
> Grygorii Strashko <grygorii.strashko at ti.com>; Vignesh R <vigneshr at ti.com>;
> Felipe Balbi <felipe.balbi at linux.intel.com>; Pandey, Radhey Shyam
> <radhey.shyam.pandey at amd.com>; Piyush Mehta
> <piyush.mehta at amd.com>; linux-usb at vger.kernel.org; linux-
> omap at vger.kernel.org; linux-kernel at vger.kernel.org; linux-arm-
> kernel at lists.infradead.org
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>;
> stable at vger.kernel.org
> Subject: [PATCH 2/2] usb: dwc3: xilinx: add missing depopulate in probe
> error path
>
> Depopulate device in probe error paths to fix leak of children resources.
>
> Fixes: 53b5ff83d893 ("usb: dwc3: xilinx: improve error handling for PM APIs")
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey at amd.com>
Thanks!
> ---
> drivers/usb/dwc3/dwc3-xilinx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/dwc3/dwc3-xilinx.c b/drivers/usb/dwc3/dwc3-xilinx.c
> index bb4d894c16e9..b7613a106da6 100644
> --- a/drivers/usb/dwc3/dwc3-xilinx.c
> +++ b/drivers/usb/dwc3/dwc3-xilinx.c
> @@ -330,6 +330,7 @@ static int dwc3_xlnx_probe(struct platform_device
> *pdev)
> return pm_runtime_resume_and_get(dev);
>
> err_pm_set_suspended:
> + of_platform_depopulate(dev);
> pm_runtime_set_suspended(dev);
>
> err_clk_put:
> --
> 2.43.0
More information about the linux-arm-kernel
mailing list