projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove 'type' argument from access_ok() function
[linux-2.6-block.git]
/
arch
/
powerpc
/
kernel
/
rtas_flash.c
diff --git
a/arch/powerpc/kernel/rtas_flash.c
b/arch/powerpc/kernel/rtas_flash.c
index 10fabae2574d5910b3cbf5ada83d912879d71351..8246f437bbc69b7bf2fdcda32e18fc6ebfe85a06 100644
(file)
--- a/
arch/powerpc/kernel/rtas_flash.c
+++ b/
arch/powerpc/kernel/rtas_flash.c
@@
-523,7
+523,7
@@
static ssize_t validate_flash_write(struct file *file, const char __user *buf,
args_buf->status = VALIDATE_INCOMPLETE;
}
- if (!access_ok(
VERIFY_READ,
buf, count)) {
+ if (!access_ok(buf, count)) {
rc = -EFAULT;
goto done;
}