summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2015-05-19 08:24:17 +0200
committerBjorn Helgaas <bhelgaas@google.com>2015-05-27 18:47:17 +0200
commita6b65983dabceb7ccb1801ee7f5bd421c2704d16 (patch)
tree04d4f169875b6839c5e801534f2a072c906a58b5 /drivers/macintosh
parentMAINTAINERS: Add Pratyush Anand as SPEAr13xx and DesignWare PCIe maintainer (diff)
downloadlinux-a6b65983dabceb7ccb1801ee7f5bd421c2704d16.tar.xz
linux-a6b65983dabceb7ccb1801ee7f5bd421c2704d16.zip
PCI: Fix IOV resource sorting by alignment requirement
In d74b9027a4da ("PCI: Consider additional PF's IOV BAR alignment in sizing and assigning"), it stores additional alignment in realloc_head and takes this into consideration for assignment. After getting the additional alignment, it reorders the head list so resources with bigger alignment are ahead of resources with smaller alignment. It does this by iterating over the head list and inserting ahead of any resource with smaller alignment. This should be done for the first occurrence, but the code currently iterates over the whole list. Fix this by terminating the loop when we find the first smaller resource in the head list. [bhelgaas: changelog] Fixes: d74b9027a4da ("PCI: Consider additional PF's IOV BAR alignment in sizing and assigning") Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions