[PATCH v9 45/60] PCI: Fix size calculation with old_size on rescan path

2015-12-10 Thread Yinghai Lu
On booting path, we don't pass realloc at first, and treat all optional just as required, in some case we can have smaller size/align with optional than required only. 04:00.0 has children bridges: 05:03.0, 05:04.0 pref layout after booting path like followings: pci :04:00.0: BAR 9:

[PATCH v9 45/60] PCI: Fix size calculation with old_size on rescan path

2015-12-10 Thread Yinghai Lu
On booting path, we don't pass realloc at first, and treat all optional just as required, in some case we can have smaller size/align with optional than required only. 04:00.0 has children bridges: 05:03.0, 05:04.0 pref layout after booting path like followings: pci :04:00.0: BAR 9: