diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2014-05-08 15:05:10 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-05-08 15:05:10 +0000 |
commit | bf6091a95a6f27c500237b734670a4ec12430a94 (patch) | |
tree | 046b90cf344096c9bb14c4b724029ba4fc95fb50 /ArmPlatformPkg | |
parent | dcaf7c9012df9fb19b60454c9688d457e5fe2dc1 (diff) | |
download | edk2-platforms-bf6091a95a6f27c500237b734670a4ec12430a94.tar.xz |
ArmPlatformPkg/BootMonFs: Fix finding space for new files
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <brendan.jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15515 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r-- | ArmPlatformPkg/FileSystem/BootMonFs/BootMonFsOpenClose.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ArmPlatformPkg/FileSystem/BootMonFs/BootMonFsOpenClose.c b/ArmPlatformPkg/FileSystem/BootMonFs/BootMonFsOpenClose.c index 778af389a0..1b5cc48937 100644 --- a/ArmPlatformPkg/FileSystem/BootMonFs/BootMonFsOpenClose.c +++ b/ArmPlatformPkg/FileSystem/BootMonFs/BootMonFsOpenClose.c @@ -204,6 +204,11 @@ BootMonFsFindSpaceForNewFile ( )
{
FileEntry = BOOTMON_FS_FILE_FROM_LINK_THIS (FileLink);
+ // Skip files that aren't on disk yet
+ if (FileEntry->HwDescription.RegionCount == 0) {
+ continue;
+ }
+
// If the free space preceding the file is big enough to contain the new
// file then use it!
if (((FileEntry->HwDescription.BlockStart * BlockSize) - *FileStart)
|