commit | 1f6e4b3f9f7c859fed7ac4c0853e976a1a752873 | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Tue May 05 10:53:15 2015 +0800 |
committer | Chris Mason <clm@fb.com> | Tue Jun 02 19:34:35 2015 -0700 |
tree | fa34f3f76af7b12888fc285cb044fa495d242432 | |
parent | 619d8c4ef7c5dd346add55da82c9179cd2e3387e [diff] |
btrfs: Fix superblock csum type check. Old csum type check is wrong and can't catch csum_type 1(not supported). Fix it to avoid hostile 0 division. Reported-by: Lukas Lueg <lukas.lueg@gmail.com> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>