diff options
| author | hanzhijian <hanzhijian1991@gmail.com> | 2026-08-22 09:22:05 +0800 |
|---|---|---|
| committer | Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> | 2026-09-01 16:38:57 +0200 |
| commit | 0031f76f73b86f711d0e4e95a967aea1821fb867 (patch) | |
| tree | 85fd6b817fddd6e31d7ccf52510c90218bbf3867 /scripts/basic/split-include.c | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-0031f76f73b86f711d0e4e95a967aea1821fb867.tar.gz linux-0031f76f73b86f711d0e4e95a967aea1821fb867.zip | |
PCI: imx6: Fix pwrctrl device leak on PM runtime setup failure
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.
Signed-off-by: hanzhijian <hanzhijian1991@gmail.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260822012205.2459806-1-hanzhijian1991@gmail.com
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
