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:
niruiyu 2013-02-21 03:40:02 +00:00
parent ca5a7d87e3
commit 944c84a6dd
1 changed files with 0 additions and 1 deletions

View File

@ -794,7 +794,6 @@ RejectPciDevice (
if (Temp == PciDevice) {
InitializePciDevice (Temp);
RemoveEntryList (CurrentLink);
FreePciDevice (Temp);
return EFI_SUCCESS;
}