From: Al Viro Date: Fri, 3 Apr 2015 19:09:38 +0000 (-0400) Subject: ashmem: use __vfs_read() X-Git-Tag: KARO-TXA5-2015-06-26~105^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=647c6812f8261b64024d5afee65b2cf16b87db5e;p=karo-tx-linux.git ashmem: use __vfs_read() Signed-off-by: Al Viro --- diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c index d140b733940c..c5c037ccf32c 100644 --- a/drivers/staging/android/ashmem.c +++ b/drivers/staging/android/ashmem.c @@ -310,7 +310,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 = asma->file->f_op->read(asma->file, buf, len, pos); + ret = __vfs_read(asma->file, buf, len, pos); if (ret >= 0) { /** Update backing file pos, since f_ops->read() doesn't */ asma->file->f_pos = *pos;