diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-23 19:05:22 +0800 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-03-23 15:57:43 -0500 |
| commit | 70bb843794d150db8e653c9ab288c8533da00837 (patch) | |
| tree | aeccc05617292ccfbd95a9e69a54984bb7295ec2 /include/mtd/git@git.tavy.me:linux.git | |
| parent | 2d8c5098b847f37dde8351fb5b5d190f1bb5c576 (diff) | |
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: cf3287fb2c1f ("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
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
