Commit 558cc8f7 authored by Al Viro's avatar Al Viro

nvram: drop useless access_ok()

we are using copy_to_user()/memdup_user() anyway
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1a4b8feb
...@@ -232,8 +232,6 @@ static ssize_t nvram_misc_read(struct file *file, char __user *buf, ...@@ -232,8 +232,6 @@ static ssize_t nvram_misc_read(struct file *file, char __user *buf,
ssize_t ret; ssize_t ret;
if (!access_ok(buf, count))
return -EFAULT;
if (*ppos >= nvram_size) if (*ppos >= nvram_size)
return 0; return 0;
...@@ -264,8 +262,6 @@ static ssize_t nvram_misc_write(struct file *file, const char __user *buf, ...@@ -264,8 +262,6 @@ static ssize_t nvram_misc_write(struct file *file, const char __user *buf,
char *tmp; char *tmp;
ssize_t ret; ssize_t ret;
if (!access_ok(buf, count))
return -EFAULT;
if (*ppos >= nvram_size) if (*ppos >= nvram_size)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment