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

cov: validate altdev list is not empty

This commit is contained in:
Zdenek Kabelac 2024-07-29 16:00:27 +02:00
parent 22672be97d
commit d1c6da2f66

View File

@ -1052,6 +1052,8 @@ next:
log_debug_cache("PV %s with duplicates unselected using %s.",
pvid, dev_name(devl->dev));
goto next;
} else if (dm_list_empty(&altdevs)) {
goto next;
} else {
devl = dm_list_item(dm_list_first(&altdevs), struct device_list);
dev1 = devl->dev;