commit | ceb785a9a1afb22aaf7f87548d3871b67d7131d5 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Thu May 23 10:22:10 2013 +0000 |
committer | Tom Rini <trini@ti.com> | Fri May 24 10:04:23 2013 -0400 |
tree | 0f39e0b94f74e9823bbc3cc7c845ac5e360d44a4 | |
parent | c663b9a1b205f08e91ff3d6c71e73a3597dbfa12 [diff] |
ext4: assign get_fs()->dev_desc before using it 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@suse.com> Tested-by: Tom Rini <trini@ti.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>