summaryrefslogtreecommitdiffstats
path: root/fs/proc/self.c
diff options
context:
space:
mode:
authorAl Viro2014-03-14 18:42:45 +0100
committerAl Viro2014-04-02 05:19:15 +0200
commit5d826c847b34de6415b4f1becd88a57ff619af50 (patch)
tree431338c4141bcff1d392f232613841bf1971d99b /fs/proc/self.c
parentlustre: generic_readlink() is just fine there, TYVM... (diff)
downloadkernel-qcow2-linux-5d826c847b34de6415b4f1becd88a57ff619af50.tar.gz
kernel-qcow2-linux-5d826c847b34de6415b4f1becd88a57ff619af50.tar.xz
kernel-qcow2-linux-5d826c847b34de6415b4f1becd88a57ff619af50.zip
new helper: readlink_copy()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/self.c')
-rw-r--r--fs/proc/self.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/self.c b/fs/proc/self.c
index ffeb202ec942..4348bb8907c2 100644
--- a/fs/proc/self.c
+++ b/fs/proc/self.c
@@ -16,7 +16,7 @@ static int proc_self_readlink(struct dentry *dentry, char __user *buffer,
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)