Deinitialize core front volume on error handling path

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2025-04-02 11:34:03 +02:00
parent bea7340e69
commit 6bb00db1ff

View File

@ -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);