]> Pileus Git - ~andy/linux/blobdiff - fs/nfsd/vfs.c
nfs: disintegrate UAPI for nfs
[~andy/linux] / fs / nfsd / vfs.c
index 3f67b8e122515302709e606ef38881ba01aae581..c120b48ec305bed3b15aec207b1dd2dac57e952b 100644 (file)
@@ -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)