]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Do not claim to release resource falsely
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 7 Mar 2025 14:09:22 +0000 (16:09 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 7 Mar 2025 17:26:19 +0000 (11:26 -0600)
commite4cb29386ffc1d12885e412232adf361c77a93ac
tree30ffe3ff871b39f20348478cd027d322905169cf
parent5af473941b56189423a7d16c05efabaf77299847
PCI: Do not claim to release resource falsely

pci_release_resource() will print "... releasing" regardless of the
resource being assigned or not. Move the print after the res->parent check
to avoid claiming the kernel would be releasing an unassigned resource.

Likely, none of the current callers pass a resource that is unassigned so
this change is mostly to correct the non-sensical order than to remove
errorneous printouts.

Link: https://lore.kernel.org/r/20250307140922.5776-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-res.c