ashmem: use __vfs_read()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 Apr 2015 19:09:38 +0000 (15:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:29:38 +0000 (22:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/android/ashmem.c

index d140b733940cc3ffd8ea567bb286aa4ed50ac8f4..c5c037ccf32cc0097f25fe16ddc7848cbd41e547 100644 (file)
@@ -310,7 +310,7 @@ static ssize_t ashmem_read(struct file *file, char __user *buf,
         * be destroyed until all references to the file are dropped and
         * ashmem_release is called.
         */
-       ret = asma->file->f_op->read(asma->file, buf, len, pos);
+       ret = __vfs_read(asma->file, buf, len, pos);
        if (ret >= 0) {
                /** Update backing file pos, since f_ops->read() doesn't */
                asma->file->f_pos = *pos;