summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
index 4fea030687..f18503097e 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
@@ -1319,10 +1319,8 @@ ProgramVfBar (
UINT64 Address;
UINT32 Address32;
+ ASSERT (Node->Bar < PCI_MAX_BAR);
ASSERT (Node->Virtual);
- if (!Node->Virtual) {
- return EFI_UNSUPPORTED;
- }
Address = 0;
PciIo = &(Node->PciDev->PciIo);