Skip to content

Commit

Permalink
Add missing cache unlock in init rollback
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
  • Loading branch information
mmichal10 committed Oct 10, 2024
1 parent c82fd17 commit 1b2a9e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mngt/ocf_mngt_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b2a9e0

Please sign in to comment.