1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

cov: lvconvert: missing check for function failure

This commit is contained in:
Zdenek Kabelac 2020-05-17 18:29:54 +02:00
parent ce8277b47e
commit cf74123830

View File

@ -5589,7 +5589,8 @@ static struct logical_volume *_lv_writecache_create(struct cmd_context *cmd,
memcpy(&seg->writecache_settings, settings, sizeof(struct writecache_settings));
add_seg_to_segs_using_this_lv(lv_fast, seg);
if (!add_seg_to_segs_using_this_lv(lv_fast, seg))
return_NULL;
return lv_wcorig;
}