Re: [PATCH] PCI: imx6: fix pwrctrl device leak on PM runtime setup failure

From: Manivannan Sadhasivam

Date: Tue Sep 01 2026 - 12:20:23 EST



On Sat, 22 Aug 2026 09:22:05 +0800, hanzhijian wrote:
> In imx_pcie_probe(), after pci_pwrctrl_create_devices() creates the
> pwrctrl devices, the error paths for imx_add_pcie_ep() and
> dw_pcie_host_init() both jump to err_pwrctrl_destroy to tear them down.
> However, the error path for devm_pm_runtime_set_active_enabled() returns
> directly, leaking the pwrctrl devices.
>
> Jump to err_pwrctrl_destroy instead so the pwrctrl devices are cleaned
> up on this error path too.
>
> [...]

Applied, thanks!

[1/1] PCI: imx6: fix pwrctrl device leak on PM runtime setup failure
commit: 0031f76f73b86f711d0e4e95a967aea1821fb867

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