Skip to contentSkip to conversation

master - singlenode: reset pointer when hash is destroyed

PATCH Zdenek Kabelac 1 participant 1 message Mar 21, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=46ae028cd34597cfd54048edd99cb0f27ac542eb
Commit:        46ae028cd34597cfd54048edd99cb0f27ac542eb
Parent:        7041c8bf51844c314fd4ed3b5f20779959524320
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Mar 19 23:34:11 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Mar 21 22:29:25 2014 +0100

singlenode: reset pointer when hash is destroyed

Just keep pointer consistent.

---
 daemons/clvmd/clvmd-singlenode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
daemons/clvmd/clvmd-singlenode.c +1 -0
index cad9acb..a3a1960 100644
@@ -109,6 +109,7 @@ static int _init_cluster(void)
 	r = init_comms();
 	if (r) {
 		dm_hash_destroy(_locks);
+		_locks = NULL;
 		return r;
 	}