]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit92a16c86299c64f58f320e491977408ba31b8c3c
tree4e2596abb203ffca047fb1b6f0258edfdc56a46b
parent7ee214b540d9453af297cd19c43002018ed73fea
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: 55d728a40d36 ("efi/fb: Avoid reconfiguration of BAR that covers the framebuffer")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/video/fbdev/efifb.c