mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
dcaf7c9012
commit
bf6091a95a
|
@ -204,6 +204,11 @@ BootMonFsFindSpaceForNewFile (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FileEntry = BOOTMON_FS_FILE_FROM_LINK_THIS (FileLink);
|
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
|
// If the free space preceding the file is big enough to contain the new
|
||||||
// file then use it!
|
// file then use it!
|
||||||
if (((FileEntry->HwDescription.BlockStart * BlockSize) - *FileStart)
|
if (((FileEntry->HwDescription.BlockStart * BlockSize) - *FileStart)
|
||||||
|
|
Loading…
Reference in New Issue