]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
add security check.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciEnumeratorSupport.c
index 49c7ec4ee02fa60818c0c1166c8f72e9ff71d446..2d5408abe0b4687ee34f833b2cf789b4b0a08b97 100644 (file)
@@ -1126,7 +1126,7 @@ UpdatePciInfo (
       BarEndIndex = PCI_MAX_BAR - 1;\r
     }\r
 \r
-    if (BarIndex >= PCI_MAX_BAR) {\r
+    if (BarIndex > PCI_MAX_BAR) {\r
       Ptr++;\r
       continue;\r
     }\r