projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9959ba0
)
nfsd4: cast readlink() bug argument
author
J. Bruce Fields
<bfields@redhat.com>
Fri, 27 Jul 2012 18:16:55 +0000
(14:16 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 10 Sep 2012 21:46:19 +0000
(17:46 -0400)
As we already do in readv, writev.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/vfs.c
b/fs/nfsd/vfs.c
index a9269f142cc481ec451c681397f520c1a1cb97f7..e76a17e003c50549e47c692ae79dcd4dd486f2bb 100644
(file)
--- 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)