]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ashmem: switch to ->read_iter
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Sep 2017 15:39:09 +0000 (17:39 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 23:05:15 +0000 (19:05 -0400)
commit8a2af06415ef0fc922162503dd18da0d9be7771f
tree60dceeb288d975df988d33e3eb29fdcfebf80778
parentcc4a41fe5541a73019a864883297bd5043aa6d98
ashmem: switch to ->read_iter

And use the proper VFS helper for using the backing file.

Also make sure we hold ashmem_lock while updating f_pos to make sure that
it's not racy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/android/ashmem.c