commit | 5d826c847b34de6415b4f1becd88a57ff619af50 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Mar 14 13:42:45 2014 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 01 23:19:15 2014 -0400 |
tree | 431338c4141bcff1d392f232613841bf1971d99b | |
parent | 4efcc9ffcd4fc53f1f7de539842cdffa1f8e5ecc [diff] [blame] |
new helper: readlink_copy() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/proc/self.c b/fs/proc/self.c index ffeb202..4348bb8 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c
@@ -16,7 +16,7 @@ if (!tgid) return -ENOENT; sprintf(tmp, "%d", tgid); - return vfs_readlink(dentry,buffer,buflen,tmp); + return readlink_copy(buffer, buflen, tmp); } static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd)