mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Fix a segfault if a device has no target (no table)
This commit is contained in:
parent
e1cd6dbc07
commit
76b74ab11f
@ -1,5 +1,6 @@
|
||||
Version 2.02.26 -
|
||||
=================================
|
||||
Fix a segfault if a device has no target (no table)
|
||||
Add some more debuglogs to clvmd startup.
|
||||
Misc clvmd cleanups
|
||||
|
||||
|
@ -187,7 +187,7 @@ int device_is_usable(dev_t dev)
|
||||
next = dm_get_next_target(dmt, next, &start, &length,
|
||||
&target_type, ¶ms);
|
||||
/* Skip if target type doesn't match */
|
||||
if (!strcmp(target_type, "mirror"))
|
||||
if (target_type && !strcmp(target_type, "mirror"))
|
||||
goto out;
|
||||
} while (next);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user