* [PATCH]: Fix sparse warning in vfs.c
@ 2006-05-24 21:27 Usha Ketineni
0 siblings, 0 replies; only message in thread
From: Usha Ketineni @ 2006-05-24 21:27 UTC (permalink / raw)
To: nfs
[-- Attachment #1: Type: text/plain, Size: 68 bytes --]
Below trivial fix casts __user attribute to avoid sparse warning
[-- Attachment #2: patch_sparse_warnings --]
[-- Type: text/plain, Size: 395 bytes --]
Signed-off-by: Usha Ketineni<uketinen@us.ibm.com>
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1383,7 +1383,7 @@ nfsd_readlink(struct svc_rqst *rqstp, st
*/
oldfs = get_fs(); set_fs(KERNEL_DS);
- err = inode->i_op->readlink(dentry, buf, *lenp);
+ err = inode->i_op->readlink(dentry, (char __user *)buf, *lenp);
set_fs(oldfs);
if (err < 0)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-24 21:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 21:27 [PATCH]: Fix sparse warning in vfs.c Usha Ketineni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox