Skip to content
Snippets Groups Projects
Commit c28cbfa1 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

ext4: assign get_fs()->dev_desc before using it


Commit 50ce4c07 "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: default avatarTom Rini <trini@ti.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 24c185cf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment