Status = BootMonFs->OpenVolume (BootMonFs, &Fs);\r
if (EFI_ERROR (Status)) {\r
PrintMessage ("Warning: Fail to open file system that should contain FDT file.\n");\r
- goto UNLOAD_PROTOCOL;\r
+ goto CLOSE_PROTOCOL;\r
}\r
\r
File = NULL;\r
Status = Fs->Open (Fs, &File, mFdtFileName, EFI_FILE_MODE_READ, 0);\r
if (EFI_ERROR (Status)) {\r
PrintMessage ("Warning: Fail to load FDT file '%s'.\n", mFdtFileName);\r
- goto UNLOAD_PROTOCOL;\r
+ goto CLOSE_PROTOCOL;\r
}\r
\r
Size = 0;\r
FileInfo = AllocatePool (Size);\r
Status = File->GetInfo (File, &gEfiFileInfoGuid, &Size, FileInfo);\r
if (EFI_ERROR (Status)) {\r
- goto UNLOAD_PROTOCOL;\r
+ goto CLOSE_PROTOCOL;\r
}\r
\r
// Get the file size\r
}\r
}\r
\r
-UNLOAD_PROTOCOL:\r
+CLOSE_PROTOCOL:\r
// We do not need the FileSystem protocol\r
gBS->CloseProtocol (\r
- ControllerHandle,\r
- &gEfiSimpleFileSystemProtocolGuid,\r
- DriverBinding->ImageHandle,\r
- ControllerHandle);\r
+ ControllerHandle,\r
+ &gEfiSimpleFileSystemProtocolGuid,\r
+ gImageHandle,\r
+ ControllerHandle);\r
\r
return Status;\r
}\r