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

scan: clean exit for alloc failure

This commit is contained in:
David Teigland 2018-06-01 10:40:28 -05:00
parent 0625c7f372
commit 7b5b1a9b6f

View File

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