• Al Viro's avatar
    btrfs: sanitize BTRFS_IOC_FILE_EXTENT_SAME · 1c1c8747
    Al Viro authored
    * 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>
    1c1c8747
ioctl.c 108 KB