master - lvmetad: fix error path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=30a73d1604aeb318709a01f4cc238e2d872be8de Commit: 30a73d1604aeb318709a01f4cc238e2d872be8de Parent: 44b3909e588bc8d1896b4a94cf7d0ce85e251960 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Feb 22 10:45:01 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Feb 22 14:15:53 2016 +0100
lvmetad: fix error path
Coverity noticed the internal error path would be using uninit struct. So always make sure reply is initilized.
--- WHATS_NEW | 1 + lib/cache/lvmetad.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.144 - ===================================== + Fix error path for internal error in lvmetad vg lookup code. Version 2.02.143 - 21st February 2016 =====================================
lib/cache/lvmetad.c +1 -1
@@ -507,7 +507,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgna {struct volume_group *vg =NULL ;struct volume_group *vg2 =NULL ; -daemon_reply reply; +daemon_reply reply = {0 };int found;char uuid[64 ];struct format_instance *fid =NULL ;