diff --git a/modules/cas_cache/layer_cache_management.c b/modules/cas_cache/layer_cache_management.c index 00acaaa..37d2fee 100644 --- a/modules/cas_cache/layer_cache_management.c +++ b/modules/cas_cache/layer_cache_management.c @@ -2021,9 +2021,11 @@ int cache_mngt_set_core_params(struct kcas_set_core_param *info) if (result) return result; - result = get_core_by_id(cache, info->core_id, &core); - if (result && result != -OCF_ERR_CORE_NOT_EXIST) - goto out; + if (info->core_id != OCF_CORE_ID_INVALID) { + result = get_core_by_id(cache, info->core_id, &core); + if (result) + goto out; + } switch (info->param_id) { case core_param_seq_cutoff_threshold: