[PATCH 6.17 241/507] PCI: Prevent resource tree corruption when BAR resize fails