[SSI] openssi/kernel/cluster/ssi/vproc dvp_pvpops.c,1.47,1.48

Roger Tsang <[email protected]> Mon, 17 Jan 2011 06:58:15 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv430/cluster/ssi/vproc

Modified Files:
      Tag: OPENSSI-FC
	dvp_pvpops.c 
Log Message:
pvpop_procfs_tid_list: fix VPROC MOVEMENT LOCK deadlock on -ENOMEM error.


Index: dvp_pvpops.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/dvp_pvpops.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- dvp_pvpops.c	15 Dec 2010 06:55:17 -0000	1.47
+++ dvp_pvpops.c	17 Jan 2011 06:58:13 -0000	1.48
@@ -4780,11 +4780,12 @@
 	return(error);
 }
 
-int  pvpop_procfs_tid_list(
-		struct vproc *v,	/* process being queried */
-		int index,
-		u_int **tids,
-		int *len)
+int
+pvpop_procfs_tid_list(
+	struct vproc *v,	/* process being queried */
+	int index,
+	u_int **tids,
+	int *len)
 {
 	struct pvproc *pvp = PVP(v);
 	struct rpvpop_args rargs;
@@ -4826,6 +4827,7 @@
 		*tids = kmalloc((sizeof(**tids) * *len), GFP_KERNEL);
 		if (!*tids) {
 			len = 0;
+			VPROC_RELEASE_MOVEMENT(v, "pvpop_procfs_tid_list");
 			return -ENOMEM;
 		}
 	}


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl