]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blobdiff - kernel/events/core.c
Remove 'type' argument from access_ok() function
[mirror_ubuntu-disco-kernel.git] / kernel / events / core.c
index 67ecac337374a41d7e1d144ed8df2f2baab8271f..3cd13a30f732921bec9ac0235613b02da5f91de9 100644 (file)
@@ -10135,7 +10135,7 @@ static int perf_copy_attr(struct perf_event_attr __user *uattr,
        u32 size;
        int ret;
 
-       if (!access_ok(VERIFY_WRITE, uattr, PERF_ATTR_SIZE_VER0))
+       if (!access_ok(uattr, PERF_ATTR_SIZE_VER0))
                return -EFAULT;
 
        /*