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

Fix core on buggy config file

Since fixed within unreleased version so no WHATS_NEW
This commit is contained in:
Zdenek Kabelac 2011-10-28 20:07:38 +00:00
parent 7ad1c43b48
commit 5a6ae6f5aa
2 changed files with 8 additions and 1 deletions

View File

@ -170,8 +170,12 @@ void dm_config_destroy(struct dm_config_tree *cft)
*/
struct dm_config_tree *dm_config_remove_cascaded_tree(struct dm_config_tree *cft)
{
struct dm_config_tree *second_cft = cft->cascade;
struct dm_config_tree *second_cft;
if (!cft)
return NULL;
second_cft = cft->cascade;
cft->cascade = NULL;
return second_cft;

View File

@ -23,3 +23,6 @@ diff -u actual expected
# ensure we can create devices (uses dmsetup, etc)
aux prepare_devs 5
# ensure we do not crash on a bug in config file
aux lvmconf 'log/prefix = 1""'
not lvs