]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Alter misleading recursion to pci_bus_release_bridge_resources()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Aug 2025 13:11:13 +0000 (16:11 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2025 16:20:09 +0000 (11:20 -0500)
commit43b4f7cd064b2ae11742f33e2af195adae00c617
tree0737643ba3994f110f582730e528d1ce6ba75962
parent159fbfd0412b0351a512d716757b6eac4639da84
PCI: Alter misleading recursion to pci_bus_release_bridge_resources()

Recursing into pci_bus_release_bridge_resources() should not alter rel_type
because it makes no sense to change the release type within the recursion
call chain. A literal "whole_subtree" is passed into the recursion instead
of "rel_type" parameter which is misleading as the release type should
remain the same throughout the entire operation.

This is not a correctness issue because of the preceding if () that only
allows the recursion to happen if rel_type is "whole_subtree". Still,
replace the non-intuitive parameter with direct passing of "rel_type".

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250829131113.36754-25-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c