1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

scan: don't use cmd mem pool in scan

Make it consistent with all the other allocations
in scanning.
This commit is contained in:
David Teigland 2018-04-25 15:48:19 -05:00
parent 4670e9f698
commit 0fe4f65f65

View File

@ -639,7 +639,7 @@ int label_scan(struct cmd_context *cmd)
} }
while ((dev = dev_iter_get(iter))) { while ((dev = dev_iter_get(iter))) {
if (!(devl = dm_pool_zalloc(cmd->mem, sizeof(*devl)))) if (!(devl = dm_zalloc(sizeof(*devl))))
return 0; return 0;
devl->dev = dev; devl->dev = dev;
dm_list_add(&all_devs, &devl->list); dm_list_add(&all_devs, &devl->list);