Commit aa83bdb8 authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] sparse fix ext2_readlink

parent 63a0acfe
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
#include "ext2.h" #include "ext2.h"
#include "xattr.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); struct ext2_inode_info *ei = EXT2_I(dentry->d_inode);
return vfs_readlink(dentry, buffer, buflen, (char *)ei->i_data); return vfs_readlink(dentry, buffer, buflen, (char *)ei->i_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment