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:
parent
0625c7f372
commit
7b5b1a9b6f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user