btrfs: Verify dir_item in iterate_object_props
authorSu Yue <suy.fnst@cn.fujitsu.com>
Tue, 6 Jun 2017 09:57:08 +0000 (17:57 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Jun 2017 17:16:04 +0000 (19:16 +0200)
commitfbc326159a01104db6163bc8e5f0a4c0ab11864d
tree3399e3bf0bcbb2a24fbea0818e1e9714833d117e
parent64c7b01446f4f1cea3cc4be041001f415ebfdc61
btrfs: Verify dir_item in iterate_object_props

Call verify_dir_item before memcmp_extent_buffer reading name from
dir_item.

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/props.c