[Ocfs2-commits] khackel commits r1780 - trunk/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Jan 17 18:55:50 CST 2005


Author: khackel
Date: 2005-01-17 18:55:48 -0600 (Mon, 17 Jan 2005)
New Revision: 1780

Modified:
   trunk/cluster/tcp.c
Log:
fix priv=NULL bug in the hopeless net_dump_and_close_sock func

Modified: trunk/cluster/tcp.c
===================================================================
--- trunk/cluster/tcp.c	2005-01-17 21:26:59 UTC (rev 1779)
+++ trunk/cluster/tcp.c	2005-01-18 00:55:48 UTC (rev 1780)
@@ -1401,6 +1401,11 @@
 	mm_segment_t            oldfs;
 
 	if (sock->sk) {
+		if (inode)
+	       		priv = inode->u.generic_ip;
+		if (!priv)
+			goto release;
+
 		len = 1;
 		while (len>0)
 		{
@@ -1434,6 +1439,7 @@
 			}
 		}
 	}
+release:
 	sock_release(sock);
 }
 



More information about the Ocfs2-commits mailing list