PCI: Fix calculation of bridge window's size and alignment
authorYongji Xie <elohimes@gmail.com>
Mon, 10 Apr 2017 11:58:11 +0000 (19:58 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 19:47:20 +0000 (14:47 -0500)
commitc9c75143a5962c4c26d2f2c99b7a6e06f421f5e1
tree55bd5389c0e603b900ce7fcc317fbae2575543bb
parentea629d873f3e140fb2e3181c30413e485ee9002b
PCI: Fix calculation of bridge window's size and alignment

In case that one device's alignment is greater than its size, we may
get an incorrect size and alignment for its bus's memory window in
pbus_size_mem().  Fix this case.

Signed-off-by: Yongji Xie <elohimes@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c