Files
erofs-linux/drivers/pci
Felix Gu 70bb843794 PCI/pwrctrl: Fix pci_pwrctrl_is_required() device node leak
The for_each_endpoint_of_node() macro requires calling of_node_put() on the
endpoint node when breaking out of the loop early.

Add of_node_put(endpoint) before the early return to release the reference.

Fixes: cf3287fb2c ("PCI/pwrctrl: Ensure that remote endpoint node parent has supply requirement")
Signed-off-by: Felix Gu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-03-23 15:57:43 -05:00
..
…
…
…
…
2026-02-06 17:09:26 -06:00
…
…
2026-01-22 10:29:55 -06:00
…
…
…
…
…
…