Merge pull request #223 from robertbaldyga/discard-add-missing-put

engine: discard: Add missing put on error path
This commit is contained in:
Jan Musiał 2019-07-29 09:37:15 +02:00 committed by GitHub
commit 1dbb6141c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ int ocf_discard(struct ocf_request *req)
if (req->rw == OCF_READ) {
req->complete(req, -OCF_ERR_INVAL);
ocf_req_put(req);
return 0;
}