From f633d641c21f45e46aa9585fc38389da033c0212 Mon Sep 17 00:00:00 2001 From: "Sarang S. Dalal" Date: Sun, 29 Oct 2017 10:23:31 +0100 Subject: [PATCH] replace deprecated vfs_read with kernel_read See https://github.com/anbox/anbox/issues/486 and related issue with ashmem and ZFS: https://github.com/zfsonlinux/spl/issues/656 --- kernel/ashmem/ashmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/ashmem/ashmem.c b/kernel/ashmem/ashmem.c index c846db6..4fde1d7 100644 --- a/kernel/ashmem/ashmem.c +++ b/kernel/ashmem/ashmem.c @@ -313,7 +313,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 = __vfs_read(asma->file, buf, len, pos); + ret = kernel_read(asma->file, buf, len, pos); if (ret >= 0) /** Update backing file pos, since f_ops->read() doesn't */ asma->file->f_pos = *pos;