Skip to content
Commit 1c1c8747 authored by Al Viro's avatar Al Viro
Browse files

btrfs: sanitize BTRFS_IOC_FILE_EXTENT_SAME



* don't assume that ->dest_count won't change between copy_from_user()
and memdup_user()
* use fdget instead of fget
* don't bother comparing superblocks when we'd already compared vfsmounts
* get rid of excessive goto
* use file_inode() instead of open-coding the sucker

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 208adb64
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