diff options
author | Qu Wenruo | 2015-05-05 04:53:15 +0200 |
---|---|---|
committer | Chris Mason | 2015-06-03 04:34:35 +0200 |
commit | 1f6e4b3f9f7c859fed7ac4c0853e976a1a752873 (patch) | |
tree | fa34f3f76af7b12888fc285cb044fa495d242432 /lib/cordic.c | |
parent | Btrfs: incremental send, fix clone operations for compressed extents (diff) | |
download | kernel-qcow2-linux-1f6e4b3f9f7c859fed7ac4c0853e976a1a752873.tar.gz kernel-qcow2-linux-1f6e4b3f9f7c859fed7ac4c0853e976a1a752873.tar.xz kernel-qcow2-linux-1f6e4b3f9f7c859fed7ac4c0853e976a1a752873.zip |
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>
Diffstat (limited to 'lib/cordic.c')
0 files changed, 0 insertions, 0 deletions