diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2017-06-06 11:57:00 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-21 19:16:04 +0200 |
commit | 19c6dcbfa74674ac5ab5d18096ee813f858668c3 (patch) | |
tree | fc86826db4b41589e939aa3a4dff56be67056273 /.mailmap | |
parent | btrfs: move dev stats accounting out of wait_dev_flush (diff) | |
download | linux-19c6dcbfa74674ac5ab5d18096ee813f858668c3.tar.xz linux-19c6dcbfa74674ac5ab5d18096ee813f858668c3.zip |
btrfs: Introduce btrfs_is_name_len_valid to avoid reading beyond boundary
Introduce function btrfs_is_name_len_valid.
The function compares parameter @name_len with item boundary then
returns true if name_len is valid.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ s/btrfs_leaf_data/BTRFS_LEAF_DATA_OFFSET/ ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions