[PATCH 0/2] PCI: j721e: fix OF node reference leaks

zhaofeng2 zhaofeng2 at cmss.chinamobile.com
Mon Nov 9 23:09:41 PST 2026


From: Zhao Feng <zhaofeng2 at cmss.chinamobile.com>

j721e_pcie_ctrl_init() and j721e_enable_acspcie_refclk() resolve
syscon phandles with of_parse_phandle_with_fixed_args(), which takes
a reference on the resolved device node.  Neither of them drops it,
so the referenced device node is leaked at probe; and since
j721e_pcie_resume_noirq() re-invokes j721e_pcie_ctrl_init() on every
resume, the leaks repeat on each suspend/resume cycle.

Drop the references once the phandle argument has been consumed.





More information about the linux-arm-kernel mailing list