Merge pull request #132 from arutk/secure_alloc_dynamic
Use secure alloc in _raw_dynamic_get_item
This commit is contained in:
commit
9f927de841
@ -93,8 +93,9 @@ static void *_raw_dynamic_get_item(ocf_cache_t cache,
|
||||
|
||||
OCF_DEBUG_PARAM(cache, "New page allocation - %u", page);
|
||||
|
||||
new = env_zalloc(PAGE_SIZE, ENV_MEM_NORMAL);
|
||||
new = env_secure_alloc(PAGE_SIZE);
|
||||
if (new) {
|
||||
ENV_BUG_ON(env_memset(new, PAGE_SIZE, 0));
|
||||
ctrl->pages[page] = new;
|
||||
env_atomic_inc(&ctrl->count);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user