Skip to contentSkip to conversation

cluster/dlm-kernel/src lowcomms.c

Cluster-devel [email protected] 1 participant 1 message Jul 16, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: pcaulfield at sourceware.org 2007-07-16 09:26:05

Modified files:
dlm-kernel/src : lowcomms.c

Log message:
Clean & deallocation 'othercon' structure when closing a connection. see bz#220538 (which is RHEL5 but still relevant)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm-kernel/src/lowcomms.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.22.2.14&r2=1.22.2.15

dlm-kernel/src/Attic/lowcomms.c +2 -0
@@ -315,6 +315,8 @@
 		   will only re-enter once.
 		*/
 		close_connection(con->othercon, FALSE);
+		kmem_cache_free(con_cache, con->othercon);
+		con->othercon = NULL;
 	}
 	if (con->rx_page) {
 		__free_page(con->rx_page);