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:
parent
e05ca245d9
commit
f633d641c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
* be destroyed until all references to the file are dropped and
|
||||||
* ashmem_release is called.
|
* ashmem_release is called.
|
||||||
*/
|
*/
|
||||||
ret = __vfs_read(asma->file, buf, len, pos);
|
ret = kernel_read(asma->file, buf, len, pos);
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
/** Update backing file pos, since f_ops->read() doesn't */
|
/** Update backing file pos, since f_ops->read() doesn't */
|
||||||
asma->file->f_pos = *pos;
|
asma->file->f_pos = *pos;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue