discard: Added missing io_put in case of error
@@ -77,7 +77,7 @@ static int _ocf_discard_core(struct ocf_request *req)
ocf_io_set_cmpl(io, req, NULL, _ocf_discard_core_complete);
err = ocf_io_set_data(io, req->data, 0);
if (err) {
- _ocf_discard_complete_req(req, err);
+ _ocf_discard_core_complete(io, err);
return err;
}
