diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 1e04cd464af9..6ca7b97114f3 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -1138,8 +1138,10 @@ asmlinkage long sys_mq_getsetattr(mqd_t mqdes, | |||
1138 | omqstat.mq_flags = filp->f_flags & O_NONBLOCK; | 1138 | omqstat.mq_flags = filp->f_flags & O_NONBLOCK; |
1139 | if (u_mqstat) { | 1139 | if (u_mqstat) { |
1140 | ret = audit_mq_getsetattr(mqdes, &mqstat); | 1140 | ret = audit_mq_getsetattr(mqdes, &mqstat); |
1141 | if (ret != 0) | 1141 | if (ret != 0) { |
1142 | goto out; | 1142 | spin_unlock(&info->lock); |
1143 | goto out_fput; | ||
1144 | } | ||
1143 | if (mqstat.mq_flags & O_NONBLOCK) | 1145 | if (mqstat.mq_flags & O_NONBLOCK) |
1144 | filp->f_flags |= O_NONBLOCK; | 1146 | filp->f_flags |= O_NONBLOCK; |
1145 | else | 1147 | else |