mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/ArmJunoDxe: Close the FDT file
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <Ronald.Cron@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16585 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f38d0dfbef
commit
f98f9d9808
|
@ -189,7 +189,7 @@ JunoFdtStart (
|
|||
FileInfo = AllocatePool (Size);
|
||||
Status = File->GetInfo (File, &gEfiFileInfoGuid, &Size, FileInfo);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto CLOSE_PROTOCOL;
|
||||
goto CLOSE_FILE;
|
||||
}
|
||||
|
||||
// Get the file size
|
||||
|
@ -219,6 +219,9 @@ JunoFdtStart (
|
|||
}
|
||||
}
|
||||
|
||||
CLOSE_FILE:
|
||||
File->Close (File);
|
||||
|
||||
CLOSE_PROTOCOL:
|
||||
// We do not need the FileSystem protocol
|
||||
gBS->CloseProtocol (
|
||||
|
|
Loading…
Reference in New Issue