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
This commit is contained in:
Sarang S. Dalal 2017-10-29 10:23:31 +01:00 committed by GitHub
commit f633d641c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;