]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Error handle for get_ref_objectid_v0() in relocate_block_group()
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 5 Aug 2015 10:00:02 +0000 (18:00 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:13 +0000 (07:07 -0700)
commitf4476a1b5513eceb12a2746741be6414f95f8a0f
tree65615cbf03efaa0a1304180d2f1ae00008c23a9a
parentfb1c732a00269aab7edf5b4a47777592b79e568f
btrfs: Error handle for get_ref_objectid_v0() in relocate_block_group()

We need error checking code for get_ref_objectid_v0() in
relocate_block_group(), to avoid unpredictable result, especially
for accessing uninitialized value(when function failed) after
this line.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/relocation.c