On Wed, Jun 11, 2014 at 12:46:16PM -0600, Stephen Warren wrote: > From: Stephen Warren <swar...@nvidia.com> > > 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: Stephen Warren <swar...@nvidia.com>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot