ocf_request: Fix use after free bug
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
c6bf894f46
commit
415a778c03
@ -206,8 +206,8 @@ void ocf_req_put(struct ocf_request *req)
|
||||
|
||||
if (!env_mpool_del(req->cache->owner->resources.req, req,
|
||||
req->core_line_count)) {
|
||||
env_mpool_del(req->cache->owner->resources.req, req, 1);
|
||||
env_free(req->map);
|
||||
env_mpool_del(req->cache->owner->resources.req, req, 1);
|
||||
}
|
||||
|
||||
ocf_queue_put(queue);
|
||||
|
Loading…
Reference in New Issue
Block a user