Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1452866 authored by Al Viro's avatar Al Viro
Browse files

ashmem: use __vfs_read()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3d04c8a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;