[PATCH 06/14] PMFS: Missing __user annotation
Matthew Wilcox
matthew.r.wilcox at intel.com
Mon Oct 7 09:37:00 EDT 2013
From: Matthew Wilcox <willy at linux.intel.com>
The readlink method requires a __user annotation on its second parameter.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox at intel.com>
---
fs/pmfs/symlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/pmfs/symlink.c b/fs/pmfs/symlink.c
index f02cbe2..2a7ec39 100644
--- a/fs/pmfs/symlink.c
+++ b/fs/pmfs/symlink.c
@@ -38,7 +38,7 @@ int pmfs_block_symlink(struct inode *inode, const char *symname, int len)
return 0;
}
-static int pmfs_readlink(struct dentry *dentry, char *buffer, int buflen)
+static int pmfs_readlink(struct dentry *dentry, char __user *buffer, int buflen)
{
struct inode *inode = dentry->d_inode;
struct super_block *sb = inode->i_sb;
--
1.8.4.rc3
More information about the Linux-pmfs
mailing list