diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 548b8a2298..8397a40582 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -1241,7 +1241,7 @@ PciHostBridgeEnumerator ( ); FreePool (Configuration); - Link = GetNextNode (&RootBridgeList, Link); + Link = RemoveEntryList (Link); DestroyRootBridge (RootBridgeDev); }