summaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/msg.c')
-rw-r--r--ipc/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index 996feb819248..7a3d6aab369d 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -216,7 +216,7 @@ static int newque(struct ipc_namespace *ns, struct ipc_params *params)
216 INIT_LIST_HEAD(&msq->q_receivers); 216 INIT_LIST_HEAD(&msq->q_receivers);
217 INIT_LIST_HEAD(&msq->q_senders); 217 INIT_LIST_HEAD(&msq->q_senders);
218 218
219 spin_unlock(&msq->q_perm.lock); 219 ipc_unlock_object(&msq->q_perm);
220 rcu_read_unlock(); 220 rcu_read_unlock();
221 221
222 return msq->q_perm.id; 222 return msq->q_perm.id;