diff options
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/mirror/mirrored.c | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,6 @@ Version 2.02.92 - ==================================== + Add check for _mirrored_init_target failure. Add free_orphan_vg. Skip pv/vg_set_fid processing if the fid is same. Check for foreach loop errors in _vg_read_orphans() (2.02.91). diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c index a20fff479..ca327ab1d 100644 --- a/lib/mirror/mirrored.c +++ b/lib/mirror/mirrored.c @@ -398,8 +398,9 @@ static int _mirrored_add_target_line(struct dev_manager *dm, struct dm_pool *mem uint32_t region_size; int r; - if (!*target_state) - *target_state = _mirrored_init_target(mem, cmd); + if (!*target_state && + !(*target_state = _mirrored_init_target(mem, cmd))) + return_0; mirr_state = *target_state; |