engine: discard: Add missing put on error path
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
aa02f56b05
commit
3355a6cd56
@ -261,6 +261,7 @@ int ocf_discard(struct ocf_request *req)
|
|||||||
|
|
||||||
if (req->rw == OCF_READ) {
|
if (req->rw == OCF_READ) {
|
||||||
req->complete(req, -OCF_ERR_INVAL);
|
req->complete(req, -OCF_ERR_INVAL);
|
||||||
|
ocf_req_put(req);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user