diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-09-29 05:47:23 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-09-29 05:47:23 +0000 |
commit | 5c7e09cbe2d927c85355666b18a4198d10249efd (patch) | |
tree | 855b711dea6dd6183623a526325963f38166de8c /IntelFrameworkModulePkg/Bus | |
parent | 9dd44c0be8cd1532ade53295b7351abe31e199d5 (diff) | |
download | edk2-platforms-5c7e09cbe2d927c85355666b18a4198d10249efd.tar.xz |
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
Diffstat (limited to 'IntelFrameworkModulePkg/Bus')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c | 4 |
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);
|