summaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-10-17 21:39:24 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-06 06:04:03 +0100
commita64e5a868573d6fe3b76e8d17538b10499239631 (patch)
tree8ba2815425201489eb73721fa405300449d82a64 /fs/file_table.c
parentscsi: sg: sg_read(): get rid of access_ok()/__copy_..._user() (diff)
downloadlinux-a64e5a868573d6fe3b76e8d17538b10499239631.tar.xz
linux-a64e5a868573d6fe3b76e8d17538b10499239631.zip
scsi: sg: sg_write(): get rid of access_ok()/__copy_from_user()/__get_user()
Just use plain copy_from_user() and get_user(). Note that while a buf-derived pointer gets stored into ->dxferp, all places that actually use the resulting value feed it either to import_iovec() or to import_single_range(), and both will do validation. Link: https://lore.kernel.org/r/20191017193925.25539-7-viro@ZenIV.linux.org.uk Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions