diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-10-17 21:39:24 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-06 06:04:03 +0100 |
commit | a64e5a868573d6fe3b76e8d17538b10499239631 (patch) | |
tree | 8ba2815425201489eb73721fa405300449d82a64 /fs/file_table.c | |
parent | scsi: sg: sg_read(): get rid of access_ok()/__copy_..._user() (diff) | |
download | linux-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