]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: Fix device leak at registration
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 21 Jul 2025 15:36:07 +0000 (17:36 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 Aug 2025 19:31:45 +0000 (14:31 -0500)
commit39f9be6aba3ae4d6fdd4b8554f1184d054d7a713
treefbe6052656d5bcfee72b5271bc45f765dc2e02fe
parentab81f2f79c683c94bac622aafafbe8232e547159
PCI/pwrctrl: Fix device leak at registration

Make sure to drop the reference to the pwrctrl device taken by
of_find_device_by_node() when registering a PCI device.

Fixes: b458ff7e8176 ("PCI/pwrctl: Ensure that pwrctl drivers are probed before PCI client drivers")
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.13
Link: https://patch.msgid.link/20250721153609.8611-2-johan+linaro@kernel.org
drivers/pci/bus.c