]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/misc/vmw_vmci/vmci_host.c
vmci_host: get rid of pointless access_ok()
[mirror_ubuntu-jammy-kernel.git] / drivers / misc / vmw_vmci / vmci_host.c
index ce16d6b99295e088b670183496527e81a20b5d64..2d8328d928d53fe78832be7ea6cb793a123b1931 100644 (file)
@@ -233,8 +233,6 @@ static int vmci_host_setup_notify(struct vmci_ctx *context,
         * about the size.
         */
        BUILD_BUG_ON(sizeof(bool) != sizeof(u8));
-       if (!access_ok((void __user *)uva, sizeof(u8)))
-               return VMCI_ERROR_GENERIC;
 
        /*
         * Lock physical page backing a given user VA.