btrfs-progs: more sanity checks in read_tree_block_fs_info
authorDavid Sterba <dsterba@suse.com>
Fri, 30 Sep 2016 14:19:20 +0000 (16:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 13:07:24 +0000 (15:07 +0200)
commit6cca2ea9bea9137fba30b48242868e3d757906dc
tree41aaa65958f4a1ba6a225417dc6e794abb1e8ba4
parent14de259f1f434a1d4d321ebebb28f95f3c9f71d8
btrfs-progs: more sanity checks in read_tree_block_fs_info

If blocksize is 0, it passes the IS_ALIGNED check but fails later as the
length of ebs will be zero.

Reported-by: Lukas Lueg <lukas.lueg@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=169311
Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.c