aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
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 aa30d19e9edd..6d47fac64292 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -692,9 +692,9 @@ static inline int may_follow_link(struct path *link, struct nameidata *nd)
692 if (uid_eq(parent->i_uid, inode->i_uid)) 692 if (uid_eq(parent->i_uid, inode->i_uid))
693 return 0; 693 return 0;
694 694
695 audit_log_link_denied("follow_link", link);
695 path_put_conditional(link, nd); 696 path_put_conditional(link, nd);
696 path_put(&nd->path); 697 path_put(&nd->path);
697 audit_log_link_denied("follow_link", link);
698 return -EACCES; 698 return -EACCES;
699} 699}
700 700