aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index a8ddadbc745..916785363f0 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -602,7 +602,7 @@ static struct file *do_create(struct dentry *dir, struct dentry *dentry,
602 dentry->d_fsdata = attr; 602 dentry->d_fsdata = attr;
603 } 603 }
604 604
605 mode &= ~current->fs->umask; 605 mode &= ~current_umask();
606 ret = mnt_want_write(mqueue_mnt); 606 ret = mnt_want_write(mqueue_mnt);
607 if (ret) 607 if (ret)
608 goto out; 608 goto out;