From: J. Bruce Fields Date: Fri, 27 Jul 2012 18:16:55 +0000 (-0400) Subject: nfsd4: cast readlink() bug argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fac7a17b5fd056db969e4b3ec9936679c01f25a5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nfsd4: cast readlink() bug argument As we already do in readv, writev. Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index a9269f142cc4..e76a17e003c5 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1581,7 +1581,7 @@ nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) */ oldfs = get_fs(); set_fs(KERNEL_DS); - host_err = inode->i_op->readlink(path.dentry, buf, *lenp); + host_err = inode->i_op->readlink(path.dentry, (char __user *)buf, *lenp); set_fs(oldfs); if (host_err < 0)