Add missing cache unlock
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
a542cfa690
commit
28f679cc91
@ -866,6 +866,7 @@ static int _ocf_mngt_init_new_cache(struct ocf_cache_mngt_init_params *params)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
lock_err:
|
lock_err:
|
||||||
|
ocf_mngt_cache_unlock(cache);
|
||||||
ocf_mngt_cache_lock_deinit(cache);
|
ocf_mngt_cache_lock_deinit(cache);
|
||||||
alloc_err:
|
alloc_err:
|
||||||
env_vfree(cache);
|
env_vfree(cache);
|
||||||
|
Loading…
Reference in New Issue
Block a user