diff options
author | Qu Wenruo | 2017-08-23 09:57:57 +0200 |
---|---|---|
committer | David Sterba | 2017-10-30 12:27:58 +0100 |
commit | 7f43d4affb2a254d421ab20b0cf65ac2569909fb (patch) | |
tree | 385315443ada8869218f57cf52330f270aad9f10 /include/uapi/linux | |
parent | btrfs: Refactor check_leaf function for later expansion (diff) | |
download | kernel-qcow2-linux-7f43d4affb2a254d421ab20b0cf65ac2569909fb.tar.gz kernel-qcow2-linux-7f43d4affb2a254d421ab20b0cf65ac2569909fb.tar.xz kernel-qcow2-linux-7f43d4affb2a254d421ab20b0cf65ac2569909fb.zip |
btrfs: Check if item pointer overlaps with the item itself
Function check_leaf() checks if any item pointer points outside of the
leaf, but it doesn't check if the pointer overlaps with the item itself.
Normally only the last item may be the victim, but adding such check is
never a bad idea anyway.
Signed-off-by: Qu Wenruo <quwenruo.btrfs@gmx.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions