diff options
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 4fcf39af1776..7635a1cf99f3 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -990,7 +990,7 @@ SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, const char __user *, u_msg_ptr, | |||
990 | goto out_fput; | 990 | goto out_fput; |
991 | } | 991 | } |
992 | info = MQUEUE_I(inode); | 992 | info = MQUEUE_I(inode); |
993 | audit_inode(NULL, f.file->f_path.dentry, 0); | 993 | audit_file(f.file); |
994 | 994 | ||
995 | if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { | 995 | if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { |
996 | ret = -EBADF; | 996 | ret = -EBADF; |
@@ -1106,7 +1106,7 @@ SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, char __user *, u_msg_ptr, | |||
1106 | goto out_fput; | 1106 | goto out_fput; |
1107 | } | 1107 | } |
1108 | info = MQUEUE_I(inode); | 1108 | info = MQUEUE_I(inode); |
1109 | audit_inode(NULL, f.file->f_path.dentry, 0); | 1109 | audit_file(f.file); |
1110 | 1110 | ||
1111 | if (unlikely(!(f.file->f_mode & FMODE_READ))) { | 1111 | if (unlikely(!(f.file->f_mode & FMODE_READ))) { |
1112 | ret = -EBADF; | 1112 | ret = -EBADF; |