Merge pull request #923 from robertbaldyga/cache_priv-vfree

Fix cache_priv deallocation
This commit is contained in:
Robert Baldyga 2021-08-16 15:53:51 +02:00 committed by GitHub
commit a5bcb0796e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1984,7 +1984,7 @@ static int _cache_mngt_cache_priv_init(ocf_cache_t cache)
cache_priv->stop_context =
env_malloc(sizeof(*cache_priv->stop_context), GFP_KERNEL);
if (!cache_priv->stop_context) {
kfree(cache_priv);
vfree(cache_priv);
return -ENOMEM;
}