aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/namei.c b/fs/namei.c
index c1f18e4f034..f04ce114229 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1972,12 +1972,8 @@ static int do_path_lookup(int dfd, const char *name,
1972 if (unlikely(retval == -ESTALE)) 1972 if (unlikely(retval == -ESTALE))
1973 retval = path_lookupat(dfd, name, flags | LOOKUP_REVAL, nd); 1973 retval = path_lookupat(dfd, name, flags | LOOKUP_REVAL, nd);
1974 1974
1975 if (likely(!retval)) { 1975 if (likely(!retval))
1976 if (unlikely(!audit_dummy_context())) { 1976 audit_inode(name, nd->path.dentry);
1977 if (nd->path.dentry && nd->inode)
1978 audit_inode(name, nd->path.dentry);
1979 }
1980 }
1981 return retval; 1977 return retval;
1982} 1978}
1983 1979