Skip to contentSkip to conversation

Zero pvmove mirror count during initialization of device manager

PATCH New Milan Broz 1 participant 1 message May 4, 2009

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 Zero pvmove mirror count during initialization of device manager

Zero pvmove mirror count during initialization of device manager.

(Otherwise there is uninitialized value.)

---
 lib/activate/dev_manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/activate/dev_manager.c +1 -0
index 1083fcd..8f068d3 100644
@@ -455,6 +455,7 @@ struct dev_manager *dev_manager_create(struct cmd_context *cmd,
 		goto_bad;
 
 	dm->target_state = NULL;
+	dm->pvmove_mirror_count = 0u;
 
 	return dm;