Skip to content

Commit

Permalink
[PATCH] replace deprecated vfs_read with kernel_read
Browse files Browse the repository at this point in the history
See anbox/anbox#486 and related issue with ashmem and ZFS:
openzfs/spl#656
  • Loading branch information
vasishath committed Dec 16, 2017
1 parent 7266fe2 commit 5ac2334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/ashmem/ashmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ac2334

Please sign in to comment.