From 5c7e09cbe2d927c85355666b18a4198d10249efd Mon Sep 17 00:00:00 2001 From: vanjeff Date: Tue, 29 Sep 2009 05:47:23 +0000 Subject: add security check and remove un-necessary return sentence. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9321 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Pci') 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); -- cgit v1.2.3