mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
Fix few warining messages and leaks while on it.
This commit is contained in:
1 parent
9277a306a7
commit
49818a594a
4 files changed
+89
-11
No files matched your search
@@ -431,7 +431,7 @@ grub_util_get_dm_node_linear_info (const char *dev,
|
||||
uint64_t length, start;
|
||||
char *target, *params;
|
||||
char *ptr;
|
||||
int major, minor;
|
||||
int major = 0, minor = 0;
|
||||
int first = 1;
|
||||
grub_disk_addr_t partstart = 0;
|
||||
|
||||
@@ -497,6 +497,8 @@ grub_util_get_dm_node_linear_info (const char *dev,
|
||||
|
||||
dm_task_destroy (dmt);
|
||||
first = 0;
|
||||
if (!dm_is_dm_major (major))
|
||||
break;
|
||||
}
|
||||
if (first)
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user