From: Miklos Szeredi Date: Wed, 15 Aug 2012 11:01:24 +0000 (+0200) Subject: vfs: pass right create mode to may_o_create() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38227f78a5020b3100cbb0406c89807563b10dae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git vfs: pass right create mode to may_o_create() Pass the umask-ed create mode to may_o_create() instead of the original one. Signed-off-by: Miklos Szeredi Tested-by: Richard W.M. Jones --- 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, } if (open_flag & O_CREAT) { - error = may_o_create(&nd->path, dentry, op->mode); + error = may_o_create(&nd->path, dentry, mode); if (error) { create_error = error; if (open_flag & O_EXCL)