Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

ext4

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
user avatar
Stephen Warren authored
ext4fs_allocate_blocks() always allocates at least one block for a file.
If the file size is zero, this causes total_remaining_blocks to
underflow, which then causes an apparent hang while 2^32 blocks are
allocated.

To solve this, check that total_remaining_blocks is non-zero as part of
the loop condition (i.e. before each loop) rather than at the end of
the loop.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
d0180280
History
Name Last commit Last update
..