patch-2.4.21 linux-2.4.21/ipc/msg.c
Next file: linux-2.4.21/kernel/fork.c
Previous file: linux-2.4.21/init/do_mounts.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/ipc/msg.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/ipc/msg.c linux-2.4.21/ipc/msg.c
@@ -815,10 +815,12 @@
schedule();
current->state = TASK_RUNNING;
+ /* This introduces a race so we must always take
+ the slow path
msg = (struct msg_msg*) msr_d.r_msg;
if(!IS_ERR(msg))
goto out_success;
-
+ */
t = msg_lock(msqid);
if(t==NULL)
msqid=-1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)