[U-Boot] [PATCH] ext4: assign get_fs()->dev_desc before using it

Tom Rini trini at ti.com
Fri May 24 16:05:39 CEST 2013


On Thu, May 23, 2013 at 02:22:10PM -0600, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> Commit 50ce4c0 "fs/ext4: Support device block sizes != 512 bytes"
> modified ext4fs_set_blk_dev() to calculate total_sect based on
> get_fs()->dev_desc->log2blksz rather than SECTOR_SIZE. However, this
> value wasn't yet assigned. Move the assignment earlier so the code
> doesn't crash or hang.
> 
> Cc: Egbert Eich <eich at suse.com>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

Good catch!

Tested-by: Tom Rini <trini at ti.com>

And, applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130524/889b4e02/attachment.pgp>


More information about the U-Boot mailing list