]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Fix old_size lower bound in calculate_iosize() too
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 16 Dec 2024 17:56:12 +0000 (19:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Feb 2025 21:40:52 +0000 (15:40 -0600)
commitff61f380de5652e723168341480cc7adf1dd6213
tree1b6dbfcb4e2664cc00b6a13620fda05cd63ff77c
parent67f9085596ee55dd27b540ca6088ba0717ee511c
PCI: Fix old_size lower bound in calculate_iosize() too

Commit 903534fa7d30 ("PCI: Fix resource double counting on remove &
rescan") fixed double counting of mem resources because of old_size being
applied too early.

Fix a similar counting bug on the io resource side.

Link: https://lore.kernel.org/r/20241216175632.4175-6-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Xiaochun Lee <lixc17@lenovo.com>
drivers/pci/setup-bus.c