Add missing cache unlock in init rollback

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2024-10-07 10:10:43 +02:00
parent c82fd173c6
commit 1b2a9e03c3

View File

@ -1468,6 +1468,9 @@ static void _ocf_mngt_init_handle_error(ocf_ctx_t ctx,
env_mutex_destroy(&cache->flush_mutex);
if (params->flags.cache_locked)
ocf_mngt_cache_unlock(cache);
ocf_mngt_cache_lock_deinit(cache);
if (params->flags.metadata_inited)