]> git.baikalelectronics.ru Git - kernel.git/commit
efi/fb: Correct PCI_STD_RESOURCE_END usage
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 19 May 2017 19:37:53 +0000 (14:37 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jun 2017 16:44:23 +0000 (11:44 -0500)
commitebd2bbc9f1a1fee34f9d58b9afa45e31abe18f09
tree4e2596abb203ffca047fb1b6f0258edfdc56a46b
parente8b3b598ab0b57b0abf8109410d74b27d7e4aaff
efi/fb: 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: f02002aaaf1a ("efi/fb: Avoid reconfiguration of BAR that covers the framebuffer")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/video/fbdev/efifb.c