aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 5bac1bb6e585..26c28ec4f4af 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2452,7 +2452,7 @@ static int atomic_open(struct nameidata *nd, struct dentry *dentry,
2452 } 2452 }
2453 2453
2454 if (open_flag & O_CREAT) { 2454 if (open_flag & O_CREAT) {
2455 error = may_o_create(&nd->path, dentry, op->mode); 2455 error = may_o_create(&nd->path, dentry, mode);
2456 if (error) { 2456 if (error) {
2457 create_error = error; 2457 create_error = error;
2458 if (open_flag & O_EXCL) 2458 if (open_flag & O_EXCL)