aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index a3fb78fd70d2..afa087649ddb 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2608,9 +2608,10 @@ retry_lookup:
2608 } 2608 }
2609 2609
2610 /* 2610 /*
2611 * It already exists. 2611 * create/update audit record if it already exists.
2612 */ 2612 */
2613 audit_inode(pathname, path->dentry); 2613 if (path->dentry->d_inode)
2614 audit_inode(pathname, path->dentry);
2614 2615
2615 /* 2616 /*
2616 * If atomic_open() acquired write access it is dropped now due to 2617 * If atomic_open() acquired write access it is dropped now due to