diff options
author | Ronald Cron <Ronald.Cron@arm.com> | 2015-01-06 15:49:51 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2015-01-06 15:49:51 +0000 |
commit | f98f9d98089be8b5b33669cf6e09f14b819dafc4 (patch) | |
tree | 6892773f14e3540e345241b1372e9e8bb6ee8606 /ArmPlatformPkg/ArmJunoPkg | |
parent | f38d0dfbefb1beb480695b7f038c1be300a6b12c (diff) | |
download | edk2-platforms-f98f9d98089be8b5b33669cf6e09f14b819dafc4.tar.xz |
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
Diffstat (limited to 'ArmPlatformPkg/ArmJunoPkg')
-rw-r--r-- | ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c index 51ea7c00fe..d8df991e0a 100644 --- a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c +++ b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c @@ -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 (
|