From aa83bdb8857314f1b5104981036e9855720d8bb4 Mon Sep 17 00:00:00 2001 From: "Andries E. Brouwer" Date: Mon, 8 Sep 2003 18:53:31 -0700 Subject: [PATCH] [PATCH] sparse fix ext2_readlink --- fs/ext2/symlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext2/symlink.c b/fs/ext2/symlink.c index 02f2db0280471..b282670a54bcf 100644 --- a/fs/ext2/symlink.c +++ b/fs/ext2/symlink.c @@ -20,7 +20,8 @@ #include "ext2.h" #include "xattr.h" -static int ext2_readlink(struct dentry *dentry, char *buffer, int buflen) +static int +ext2_readlink(struct dentry *dentry, char __user *buffer, int buflen) { struct ext2_inode_info *ei = EXT2_I(dentry->d_inode); return vfs_readlink(dentry, buffer, buflen, (char *)ei->i_data); -- 2.53.0