Skip to contentSkip to conversation

master - scan: don't use cmd mem pool in scan

PATCH David Teigland 1 participant 1 message Apr 25, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0fe4f65f65faf9c61017bb14e281108b41165185
Commit:        0fe4f65f65faf9c61017bb14e281108b41165185
Parent:        4670e9f698099bf1b9612d16855f9207c0e0f467
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Apr 25 15:48:19 2018 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Apr 25 16:40:08 2018 -0500

scan: don't use cmd mem pool in scan

Make it consistent with all the other allocations
in scanning.

---
 lib/label/label.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/label/label.c +1 -1
index 4b18f56..97e2a0b 100644
@@ -639,7 +639,7 @@ int label_scan(struct cmd_context *cmd)
 	}
 
 	while ((dev = dev_iter_get(iter))) {
-		if (!(devl = dm_pool_zalloc(cmd->mem, sizeof(*devl))))
+		if (!(devl = dm_zalloc(sizeof(*devl))))
 			return 0;
 		devl->dev = dev;
 		dm_list_add(&all_devs, &devl->list);