Skip to content
Commit 59b0a7f2 authored by Su Yue's avatar Su Yue Committed by David Sterba
Browse files

btrfs: Check name_len before read in iterate_dir_item



Since iterate_dir_item checks name_len in its own way,
so use btrfs_is_name_len_valid not 'verify_dir_item' to make more strict
name_len check.

Signed-off-by: default avatarSu Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ switched ENAMETOOLONG to EIO ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3c1d4184
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment