Merge pull request #923 from robertbaldyga/cache_priv-vfree
Fix cache_priv deallocation
This commit is contained in:
commit
a5bcb0796e
@ -1984,7 +1984,7 @@ static int _cache_mngt_cache_priv_init(ocf_cache_t cache)
|
|||||||
cache_priv->stop_context =
|
cache_priv->stop_context =
|
||||||
env_malloc(sizeof(*cache_priv->stop_context), GFP_KERNEL);
|
env_malloc(sizeof(*cache_priv->stop_context), GFP_KERNEL);
|
||||||
if (!cache_priv->stop_context) {
|
if (!cache_priv->stop_context) {
|
||||||
kfree(cache_priv);
|
vfree(cache_priv);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user