commit | 3c5fcec00ce1317cda56d549259550fcc018c834 | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Sat Oct 01 12:35:32 2011 -0400 |
committer | Kevin O'Connor <kevin@koconnor.net> | Sat Oct 01 12:42:51 2011 -0400 |
tree | 5c8b9f50af06b16432bf8ea9dd8aca62b19501df | |
parent | d2deae203dd58db6a9e9f2906dead311d6d07328 [diff] |
Fix alignment bug in pci_bios_init_root_regions(). If there are no memory allocations for a given type then the "max" bar size is zero. However, ALIGN_DOWN does not handle an alignment of zero properly. Catch and handle the zero case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>