aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 26c28ec4f4af..db76b866a097 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2489,6 +2489,10 @@ static int atomic_open(struct nameidata *nd, struct dentry *dentry,
2489 dput(dentry); 2489 dput(dentry);
2490 dentry = file->f_path.dentry; 2490 dentry = file->f_path.dentry;
2491 } 2491 }
2492 if (create_error && dentry->d_inode == NULL) {
2493 error = create_error;
2494 goto out;
2495 }
2492 goto looked_up; 2496 goto looked_up;
2493 } 2497 }
2494 2498