ISA Bus code scrub.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8538 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -387,7 +387,7 @@ IsaIoUnmap (
|
||||
// Free the mapped buffer and the MAP_INFO structure.
|
||||
//
|
||||
gBS->FreePages (IsaMapInfo->MappedHostAddress, IsaMapInfo->NumberOfPages);
|
||||
gBS->FreePool (IsaMapInfo);
|
||||
FreePool (IsaMapInfo);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
@@ -822,7 +822,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
|
||||
&IsaMapInfo->MappedHostAddress
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
gBS->FreePool (IsaMapInfo);
|
||||
FreePool (IsaMapInfo);
|
||||
*NumberOfBytes = 0;
|
||||
*Mapping = NULL;
|
||||
return Status;
|
||||
@@ -1129,7 +1129,7 @@ IsaIoMapFullSupport (
|
||||
&IsaMapInfo->MappedHostAddress
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
gBS->FreePool (IsaMapInfo);
|
||||
FreePool (IsaMapInfo);
|
||||
*NumberOfBytes = 0;
|
||||
*Mapping = NULL;
|
||||
return Status;
|
||||
|
Reference in New Issue
Block a user