]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb302a1b27aeda7f746e5072e820f56baf1498b0
tree55bd5389c0e603b900ce7fcc317fbae2575543bb
parente67f67730f367775c4f5308c8807ecd2f9de519f
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