projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4b8fe
)
nvram: drop useless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 01:52:17 +0000
(21:52 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 29 May 2020 15:03:30 +0000
(11:03 -0400)
we are using copy_to_user()/memdup_user() anyway
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/nvram.c
patch
|
blob
|
history
diff --git
a/drivers/char/nvram.c
b/drivers/char/nvram.c
index 4667844eee69d35d12a15976fd9ca630e2f75193..8206412d25ba7ee326c929e86bc0c97850420ec7 100644
(file)
--- a/
drivers/char/nvram.c
+++ b/
drivers/char/nvram.c
@@
-232,8
+232,6
@@
static ssize_t nvram_misc_read(struct file *file, char __user *buf,
ssize_t ret;
- if (!access_ok(buf, count))
- return -EFAULT;
if (*ppos >= nvram_size)
return 0;
@@
-264,8
+262,6
@@
static ssize_t nvram_misc_write(struct file *file, const char __user *buf,
char *tmp;
ssize_t ret;
- if (!access_ok(buf, count))
- return -EFAULT;
if (*ppos >= nvram_size)
return 0;