[PATCH v8 46/61] PCI: Fix size calculation with old_size on rescan path

2015-10-27 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 v8 46/61] PCI: Fix size calculation with old_size on rescan path

2015-10-27 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: