Deinitialize core front volume on error handling path
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
parent
bea7340e69
commit
6bb00db1ff
@ -383,6 +383,11 @@ static void _ocf_mngt_deinit_added_cores(
|
||||
if (context->cfg.open_cores)
|
||||
ocf_volume_close(volume);
|
||||
|
||||
if (core->front_volume.opened) {
|
||||
ocf_volume_close(&core->front_volume);
|
||||
ocf_volume_deinit(&core->front_volume);
|
||||
}
|
||||
|
||||
if (core->seq_cutoff)
|
||||
ocf_core_seq_cutoff_deinit(core);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user