[PATCH AUTOSEL for 4.9 056/293] PCI: Correct PCI_STD_RESOURCE_END usage

2018-04-08 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 2f686f1d9beee135de6d08caea707ec7bfc916d4 ] 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:

[PATCH AUTOSEL for 4.9 056/293] PCI: Correct PCI_STD_RESOURCE_END usage

2018-04-08 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 2f686f1d9beee135de6d08caea707ec7bfc916d4 ] 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