mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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;
|
goto_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = dm_config_flatten(current);
|
if (!(result = dm_config_flatten(current)))
|
||||||
|
goto_out;
|
||||||
|
|
||||||
if (!(cn = dm_config_create_node(result, "policy_settings")))
|
if (!(cn = dm_config_create_node(result, "policy_settings")))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user