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:
parent
4670e9f698
commit
0fe4f65f65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user