summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorNeilBrown2015-03-23 03:37:39 +0100
committerAl Viro2015-05-11 04:18:29 +0200
commit37882db0546c759ff75b561c188539ac96fd0bfe (patch)
tree2bf5152d8ee7963d5d46d9fe25c1cb3c10be29c6 /fs/namei.c
parentlogfs: fix a pagecache leak for symlinks (diff)
downloadkernel-qcow2-linux-37882db0546c759ff75b561c188539ac96fd0bfe.tar.gz
kernel-qcow2-linux-37882db0546c759ff75b561c188539ac96fd0bfe.tar.xz
kernel-qcow2-linux-37882db0546c759ff75b561c188539ac96fd0bfe.zip
SECURITY: remove nameidata arg from inode_follow_link.
No ->inode_follow_link() methods use the nameidata arg, and it is about to become private to namei.c. So remove from all inode_follow_link() functions. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index fe30d3be43a8..7f20b40426dc 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -871,7 +871,7 @@ follow_link(struct path *link, struct nameidata *nd, void **p)
touch_atime(link);
nd_set_link(nd, NULL);
- error = security_inode_follow_link(link->dentry, nd);
+ error = security_inode_follow_link(dentry);
if (error)
goto out_put_nd_path;