> + if (!access_ok((void __user *)(uintptr_t)info->data, info->size)) > + return -EFAULT; Just let the copy_from_user itself return the error itself.
> + if (!access_ok((void __user *)(uintptr_t)info->data, info->size)) > + return -EFAULT; Just let the copy_from_user itself return the error itself.