mirror of https://github.com/acidanthera/audk.git
Shouldn't free the PciDev structure because the PciDev needs to be saved to RemovedPciDev array.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Elvin Li <elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14140 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ca5a7d87e3
commit
944c84a6dd
|
@ -794,7 +794,6 @@ RejectPciDevice (
|
|||
if (Temp == PciDevice) {
|
||||
InitializePciDevice (Temp);
|
||||
RemoveEntryList (CurrentLink);
|
||||
FreePciDevice (Temp);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue