From: Bjorn Helgaas Date: Fri, 19 May 2017 19:40:50 +0000 (-0500) Subject: PCI: Correct PCI_STD_RESOURCE_END usage X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf97987fb94cc7d90154a217a3464d46efb8ee69;p=pandora-kernel.git PCI: Correct PCI_STD_RESOURCE_END usage commit 2f686f1d9beee135de6d08caea707ec7bfc916d4 upstream. 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: 9fe373f9997b ("PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size") Signed-off-by: Bjorn Helgaas Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed