]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/video/fbdev/efifb.c
Merge tag 'for-linus-20170713' of git://git.infradead.org/linux-mtd
[karo-tx-linux.git] / drivers / video / fbdev / efifb.c
index b827a8113e26803d8caee69e4ea59d6ceae56ea0..ff01bed7112f1566ca13b3e17330851bf02fec05 100644 (file)
@@ -408,7 +408,7 @@ static void efifb_fixup_resources(struct pci_dev *dev)
        if (!base)
                return;
 
-       for (i = 0; i < PCI_STD_RESOURCE_END; i++) {
+       for (i = 0; i <= PCI_STD_RESOURCE_END; i++) {
                struct resource *res = &dev->resource[i];
 
                if (!(res->flags & IORESOURCE_MEM))