]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - drivers/platform/goldfish/goldfish_pipe.c
Remove 'type' argument from access_ok() function
[mirror_ubuntu-focal-kernel.git] / drivers / platform / goldfish / goldfish_pipe.c
index 7c639006252ec912058b8f7c1933b2c2db5dc454..321bc673c4173d2d3613619cf05bc9275b650285 100644 (file)
@@ -416,8 +416,7 @@ static ssize_t goldfish_pipe_read_write(struct file *filp,
        if (unlikely(bufflen == 0))
                return 0;
        /* Check the buffer range for access */
-       if (unlikely(!access_ok(is_write ? VERIFY_WRITE : VERIFY_READ,
-                               buffer, bufflen)))
+       if (unlikely(!access_ok(buffer, bufflen)))
                return -EFAULT;
 
        address = (unsigned long)buffer;