]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Correct PCI_STD_RESOURCE_END usage
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 19 May 2017 19:40:50 +0000 (14:40 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jun 2017 16:44:23 +0000 (11:44 -0500)
commit21826ab7ca4ad5caa0307c0df048847e17604e8f
tree90669c57fe05c9d758b1b0184b69a739b915d988
parentebd2bbc9f1a1fee34f9d58b9afa45e31abe18f09
PCI: Correct PCI_STD_RESOURCE_END usage

PCI_STD_RESOURCE_END is (confusingly) the index of the last valid BAR, not
the *number* of BARs.  To iterate through all possible BARs, we need to
include PCI_STD_RESOURCE_END.

Fixes: 551f1a814369 ("PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c