diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-22 22:39:56 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-23 00:49:04 +0100 |
commit | a6a7a3a074692a66d065d19e58e6e170233ab9e9 (patch) | |
tree | 14417046d1c13afd688885b12e975d46c4081c11 | |
parent | ccdea661fa2aab07fbd73bfd7f8fe5273acd71c0 (diff) | |
download | lvm2-a6a7a3a074692a66d065d19e58e6e170233ab9e9.tar.gz |
cleanup: add missing error path check
New code misses error path check.
-rw-r--r-- | tools/toollib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index 00512a3a6..ddf2dcffc 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -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; |