diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-07-27 18:16:55 (GMT) |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-09-10 21:46:19 (GMT) |
commit | fac7a17b5fd056db969e4b3ec9936679c01f25a5 (patch) | |
tree | 0627105845eb9f6482b7337f8203caa857129afd | |
parent | 9959ba0c241a71c7ed8133401cfbbee2720da0b5 (diff) | |
download | linux-fsl-qoriq-fac7a17b5fd056db969e4b3ec9936679c01f25a5.tar.xz |
nfsd4: cast readlink() bug argument
As we already do in readv, writev.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index a9269f1..e76a17e 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) |