aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/msg.c')
-rw-r--r--ipc/msg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index fbf757064a32..60c1e5c23418 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -220,8 +220,7 @@ asmlinkage long sys_msgget (key_t key, int msgflg)
220 ret = -EEXIST; 220 ret = -EEXIST;
221 } else { 221 } else {
222 msq = msg_lock(id); 222 msq = msg_lock(id);
223 if(msq==NULL) 223 BUG_ON(msq==NULL);
224 BUG();
225 if (ipcperms(&msq->q_perm, msgflg)) 224 if (ipcperms(&msq->q_perm, msgflg))
226 ret = -EACCES; 225 ret = -EACCES;
227 else { 226 else {