[PATCH v2] PCI: imx6: Fix device node reference leak in imx_pcie_probe()
Manivannan Sadhasivam
manivannan.sadhasivam at oss.qualcomm.com
Wed Feb 25 22:46:33 PST 2026
On Sat, 24 Jan 2026 23:42:45 +0800, Felix Gu wrote:
> In imx_pcie_probe, np is obtained by of_parse_phandle() and must be
> released when it's no longer needed. However, it doesn't release the
> reference, which cuases a reference leak.
> Fix this by using the __free(device_node) cleanup handler to release the
> reference when it goes out of scope.
>
>
> [...]
Applied, thanks!
[1/1] PCI: imx6: Fix device node reference leak in imx_pcie_probe()
commit: 4836ad727486563370b213ef594d644d1bf85b8d
Best regards,
--
Manivannan Sadhasivam <mani at kernel.org>
More information about the linux-arm-kernel
mailing list