diff options
Diffstat (limited to 'DuetPkg/FSVariable/FileStorage.c')
-rw-r--r-- | DuetPkg/FSVariable/FileStorage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/DuetPkg/FSVariable/FileStorage.c b/DuetPkg/FSVariable/FileStorage.c index 4e366de..c4c239a 100644 --- a/DuetPkg/FSVariable/FileStorage.c +++ b/DuetPkg/FSVariable/FileStorage.c @@ -229,7 +229,9 @@ OnSimpleFileSystemInstall ( NumBytes = Dev->Size;
Status = File->Write (File, &NumBytes, VAR_DATA_PTR (Dev));
ASSERT_EFI_ERROR (Status);
- FileClose (File);
+ // KEN: bugbug here if closing file, volume handle will be free,
+ // and system will be hang when accessing volume handle in future.
+ //FileClose (File);
DEBUG ((EFI_D_ERROR, "FileStorage: Mapped to file!\n"));
}
@@ -407,7 +409,7 @@ OpenStore ( if (EFI_ERROR (Status)) {
return Status;
}
-
+
//
// Open the root directory of the volume
//
|