1
0
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:
Milan Broz 2007-05-14 11:27:34 +00:00
parent e1cd6dbc07
commit 76b74ab11f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -187,7 +187,7 @@ int device_is_usable(dev_t dev)
next = dm_get_next_target(dmt, next, &start, &length,
&target_type, &params);
/* Skip if target type doesn't match */
if (!strcmp(target_type, "mirror"))
if (target_type && !strcmp(target_type, "mirror"))
goto out;
} while (next);