linux/drivers/pci/pwrctrl
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 <ustc.gu@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260323-pwctrl-v1-1-f5c03a2df7fb@gmail.com
2026-03-23 15:57:43 -05:00
..
Kconfig PCI/pwrctrl: Add PCIe M.2 connector support 2026-01-28 10:39:17 -06:00
Makefile PCI: pwrctrl: Add power control driver for TC9563 2025-11-24 15:30:52 -06:00
core.c PCI/pwrctrl: Fix pci_pwrctrl_is_required() device node leak 2026-03-23 15:57:43 -05:00
pci-pwrctrl-pwrseq.c PCI/pwrctrl: Do not power off on pwrctrl device removal 2026-03-23 15:25:32 -05:00
pci-pwrctrl-tc9563.c PCI/pwrctrl: Switch to pwrctrl create, power on/off, destroy APIs 2026-01-16 13:23:38 -06:00
slot.c PCI/pwrctrl: Do not power off on pwrctrl device removal 2026-03-23 15:25:32 -05:00