Skip to content

Commit 87c233b

Browse files
author
Al Viro
committed
vmci_host: get rid of pointless access_ok()
get_user_pages_fast() doesn't need the caller to check that. NB: reachable only from ioctl(2) and only under USER_DS Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent fd8ec4d commit 87c233b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/misc/vmw_vmci/vmci_host.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ static int vmci_host_setup_notify(struct vmci_ctx *context,
233233
* about the size.
234234
*/
235235
BUILD_BUG_ON(sizeof(bool) != sizeof(u8));
236-
if (!access_ok((void __user *)uva, sizeof(u8)))
237-
return VMCI_ERROR_GENERIC;
238236

239237
/*
240238
* Lock physical page backing a given user VA.

0 commit comments

Comments
 (0)