[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] master - singlenode: reset pointer when hash is destroyed



Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=46ae028cd34597cfd54048edd99cb0f27ac542eb
Commit:        46ae028cd34597cfd54048edd99cb0f27ac542eb
Parent:        7041c8bf51844c314fd4ed3b5f20779959524320
Author:        Zdenek Kabelac <zkabelac redhat com>
AuthorDate:    Wed Mar 19 23:34:11 2014 +0100
Committer:     Zdenek Kabelac <zkabelac redhat com>
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(-)

diff --git a/daemons/clvmd/clvmd-singlenode.c b/daemons/clvmd/clvmd-singlenode.c
index cad9acb..a3a1960 100644
--- a/daemons/clvmd/clvmd-singlenode.c
+++ b/daemons/clvmd/clvmd-singlenode.c
@@ -109,6 +109,7 @@ static int _init_cluster(void)
 	r = init_comms();
 	if (r) {
 		dm_hash_destroy(_locks);
+		_locks = NULL;
 		return r;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]