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]
/
drivers
/
infiniband
/
hw
/
hfi1
/
user_exp_rcv.c
diff --git
a/drivers/infiniband/hw/hfi1/user_exp_rcv.c
b/drivers/infiniband/hw/hfi1/user_exp_rcv.c
index dbe7d14a5c76d18f23ddf13e264f97c56d086d86..0cd71ce7cc71f767fef7865049bdd09cb5cc0e0f 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/user_exp_rcv.c
+++ b/
drivers/infiniband/hw/hfi1/user_exp_rcv.c
@@
-232,7
+232,7
@@
static int pin_rcv_pages(struct hfi1_filedata *fd, struct tid_user_buf *tidbuf)
}
/* Verify that access is OK for the user buffer */
- if (!access_ok(
VERIFY_WRITE,
(void __user *)vaddr,
+ if (!access_ok((void __user *)vaddr,
npages * PAGE_SIZE)) {
dd_dev_err(dd, "Fail vaddr %p, %u pages, !access_ok\n",
(void *)vaddr, npages);