Skip to contentSkip to conversation

Fix clvmd automatic target module load to not segfault.

PATCH New Milan Broz 1 participant 1 message Jan 11, 2010

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 Fix clvmd automatic target module load to not segfault.

---
 lib/locking/locking.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
lib/locking/locking.c +3 -1
index e1881af..4d1d845 100644
@@ -186,7 +186,9 @@ void reset_locking(void)
 	_vg_lock_count = 0;
 	_vg_write_lock_held = 0;
 
-	_locking.reset_locking();
+	/* FIXME: clvmd/exec_cmd calls that without locking set */
+	if (_locking.reset_locking)
+		_locking.reset_locking();
 
 	if (was_locked)
 		_unblock_signals();
Signature · 1 line
1.6.6