projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db188f
)
cxlflash: get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 29 Sep 2017 17:58:09 +0000
(13:58 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 17 Oct 2017 05:25:17 +0000
(
01:25
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/cxlflash/main.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/cxlflash/main.c
b/drivers/scsi/cxlflash/main.c
index 76b8b7eed0c03ba160275d0b7ac200d3a67c1ab7..39430c67b522c73c5527199140989af23c1ecc2b 100644
(file)
--- 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;