Fix message when try-adding already opened core

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2022-02-18 12:54:13 +01:00
parent da59a1c9aa
commit e0cd0a4882

View File

@ -256,8 +256,8 @@ static void ocf_mngt_cache_try_add_core_prepare(ocf_pipeline_t pipeline,
goto err; goto err;
if (core->opened) { if (core->opened) {
result = -OCF_ERR_INVAL; ocf_cache_log(cache, log_err, "Core already opened\n");
goto err; OCF_PL_FINISH_RET(context->pipeline, -OCF_ERR_CORE_UUID_EXISTS);
} }
volume = ocf_core_get_volume(core); volume = ocf_core_get_volume(core);