]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: Fix device and OF node leak at bus scan
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 21 Jul 2025 15:36:08 +0000 (17:36 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 Aug 2025 19:32:11 +0000 (14:32 -0500)
commite24bbbe0780262a21fc8619fe99078a5b8d64b18
treec24fac0c81519a7e559a146003c373cec59a2931
parent39f9be6aba3ae4d6fdd4b8554f1184d054d7a713
PCI/pwrctrl: Fix device and OF node leak at bus scan

Make sure to drop the references to the pwrctrl OF node and device taken by
of_pci_find_child_device() and of_find_device_by_node() respectively when
scanning the bus.

Fixes: 957f40d039a9 ("PCI/pwrctrl: Move creation of pwrctrl devices to pci_scan_device()")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org # v6.15
Link: https://patch.msgid.link/20250721153609.8611-3-johan+linaro@kernel.org
drivers/pci/probe.c