diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-01 11:40:53 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-01 14:02:43 +0100 |
commit | 8173c2ff9af805a1f8eb79fb4bd223622f79ad0d (patch) | |
tree | d4ce627241848a18f075b28ad5e21cbf9477c784 | |
parent | b2d819eafac630cc683c5fdf02730a636dd9bff6 (diff) | |
download | lvm2-8173c2ff9af805a1f8eb79fb4bd223622f79ad0d.tar.gz |
coverity: missing error path
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | tools/toollib.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,6 @@ Version 2.02.145 - ===================================== + Fix error path when pvcreate allocation fails (2.02.144). Display [unknown] instead of blank for unknown VG names in pvs output. Version 2.02.144 - 26th February 2016 diff --git a/tools/toollib.c b/tools/toollib.c index dd5ece3ed..dbb6d4024 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -4406,6 +4406,7 @@ do_command: if (!(pvl = dm_pool_alloc(cmd->mem, sizeof(*pvl)))) { log_error("alloc pvl failed"); dm_list_move(&pp->arg_fail, &pd->list); + continue; } pv_name = pd->name; |