mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cleanup: add missing error path check
New code misses error path check.
This commit is contained in:
parent
ccdea661fa
commit
a6a7a3a074
@ -1149,7 +1149,8 @@ struct dm_config_tree *get_cachepolicy_params(struct cmd_context *cmd)
|
||||
goto_out;
|
||||
}
|
||||
|
||||
result = dm_config_flatten(current);
|
||||
if (!(result = dm_config_flatten(current)))
|
||||
goto_out;
|
||||
|
||||
if (!(cn = dm_config_create_node(result, "policy_settings")))
|
||||
goto_out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user