]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Check name_len before in btrfs_del_root_ref
authorSu Yue <suy.fnst@cn.fujitsu.com>
Tue, 6 Jun 2017 09:57:07 +0000 (17:57 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Jun 2017 17:16:04 +0000 (19:16 +0200)
commit01e111fa009c70ab309b1279b1b0054c8ce1f04b
tree1a81584cc92f93ab11e157cc3db4baf671e78259
parent97aef62199bee1a694bcafa9080186c1c78210a7
btrfs: Check name_len before in btrfs_del_root_ref

btrfs_del_root_ref calls btrfs_search_slot and reads name from root_ref.
Call btrfs_is_name_len_valid before memcmp.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/root-tree.c