[DRBD-cvs] svn commit by phil - r2459 - trunk/drbd - I guess it is time for a break...

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Mon Sep 25 16:10:03 CEST 2006


Author: phil
Date: 2006-09-25 16:10:01 +0200 (Mon, 25 Sep 2006)
New Revision: 2459

Modified:
   trunk/drbd/drbd_receiver.c
Log:
I guess it is time for a break...


Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c	2006-09-25 13:53:21 UTC (rev 2458)
+++ trunk/drbd/drbd_receiver.c	2006-09-25 14:10:01 UTC (rev 2459)
@@ -2523,9 +2523,19 @@
 
 	if(mdev->state.conn == Disconnecting) {
 		wait_event( mdev->cstate_wait,atomic_read(&mdev->net_cnt) == 0 );
-		if(mdev->ee_hash) kfree(mdev->ee_hash);
-		if(mdev->tl_hash) kfree(mdev->tl_hash);
-		if(mdev->cram_hmac_tfm) crypto_free_tfm(mdev->cram_hmac_tfm);
+		if(mdev->ee_hash) {
+			kfree(mdev->ee_hash);
+			mdev->ee_hash = NULL;
+		}
+
+		if(mdev->tl_hash) {
+			kfree(mdev->tl_hash);
+			mdev->tl_hash = NULL;
+		}
+		if(mdev->cram_hmac_tfm) {
+			crypto_free_tfm(mdev->cram_hmac_tfm);
+			mdev->cram_hmac_tfm = NULL;
+		}
 		kfree(mdev->net_conf);
 		mdev->net_conf=NULL;
 		drbd_request_state(mdev, NS(conn,StandAlone));



More information about the drbd-cvs mailing list