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

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)