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 474984f9e032..96fb36cd9874 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -638,7 +638,7 @@ static int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE,
638 return ERR_PTR(-EINVAL); 638 return ERR_PTR(-EINVAL);
639 } 639 }
640 640
641 if (permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE], NULL)) { 641 if (inode_permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE])) {
642 dput(dentry); 642 dput(dentry);
643 mntput(mqueue_mnt); 643 mntput(mqueue_mnt);
644 return ERR_PTR(-EACCES); 644 return ERR_PTR(-EACCES);