[SSI] openssi/kernel/ipc msg.c,1.18,1.19

Roger Tsang <[email protected]> Sat, 03 Apr 2010 22:00:39 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/ipc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15224/kernel/ipc

Modified Files:
      Tag: OPENSSI-FC
	msg.c 
Log Message:
- Fix ripc_msgsnd() multiple struct msg_msgseg leak on ssi_msgnd() error.
- Fix double kfree() due to ssi_msgsnd() did not NULL "msgp" pointer to struct msg_msg when message is queued. Bug introduced in OPENSSI-FC-1-9-6-PRE32.

 cluster/ssi/ipc/ipcmsg_svr.c |   13 ++++++++++++-
 ipc/msg.c                    |    4 ++++
 2 files changed, 16 insertions(+), 1 deletion(-)


Index: msg.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/ipc/msg.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- msg.c	3 Apr 2010 19:34:43 -0000	1.18
+++ msg.c	3 Apr 2010 22:00:37 -0000	1.19
@@ -1085,7 +1085,11 @@
 	}
 	
 	err = 0;
+#ifdef CONFIG_SSI
+	*msgp = NULL;
+#else
 	msg = NULL;
+#endif /* !CONFIG_SSI */
 
 out_unlock_free:
 	msg_unlock(msq);


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev