summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-29 13:58:09 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-17 01:25:17 -0400
commita0dbef33863349de5313dff62982d309ded98190 (patch)
tree56e4fef3e4daefc66b6604fab590b369f7d9e6f6 /drivers/scsi
parent0db188f96b69957dec623c10b474d12b8b6038c2 (diff)
downloadlinux-a0dbef33863349de5313dff62982d309ded98190.tar.gz
linux-a0dbef33863349de5313dff62982d309ded98190.tar.bz2
linux-a0dbef33863349de5313dff62982d309ded98190.zip
cxlflash: get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/cxlflash/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c
index 76b8b7eed0c0..39430c67b522 100644
--- a/drivers/scsi/cxlflash/main.c
+++ b/drivers/scsi/cxlflash/main.c
@@ -3383,12 +3383,6 @@ static int cxlflash_afu_debug(struct cxlflash_cfg *cfg,
goto out;
}
- if (unlikely(!access_ok(is_write ? VERIFY_READ : VERIFY_WRITE,
- ubuf, ulen))) {
- rc = -EFAULT;
- goto out;
- }
-
buf = kmalloc(ulen + cache_line_size() - 1, GFP_KERNEL);
if (unlikely(!buf)) {
rc = -ENOMEM;