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:
parent
7ad1c43b48
commit
5a6ae6f5aa
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user