[PATCH v7] PCI: imx6: fix resource leaks in probe error paths

Manivannan Sadhasivam mani at kernel.org
Tue Sep 22 09:36:33 PDT 2026


On Fri, 04 Sep 2026 09:23:07 +0800, Zhijian Han wrote:
> imx_pcie_probe() leaks both pwrctrl devices and power domains on failure:
> 
> - imx_pcie_attach_pd() attaches the "pcie" and "pcie_phy" power domains
>   and adds device links to them, but nothing detaches the domains or
>   removes the links on probe failure or deferral, so they leak.
> 
> - A failure of devm_pm_runtime_set_active_enabled() returns directly
>   without destroying the pwrctrl devices.
> 
> [...]

Applied, thanks!

[1/1] PCI: imx6: fix resource leaks in probe error paths
      commit: 3e7a0a4f2aa5e8392f005d7ea1c8e783e90453cd

Best regards,
-- 
மணிவண்ணன் சதாசிவம்





More information about the linux-arm-kernel mailing list