mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
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) {
|
if (Temp == PciDevice) {
|
||||||
InitializePciDevice (Temp);
|
InitializePciDevice (Temp);
|
||||||
RemoveEntryList (CurrentLink);
|
RemoveEntryList (CurrentLink);
|
||||||
FreePciDevice (Temp);
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user