Message ID | 24729d65-c531-dcc5-3eca-900d65961092@electrozaur.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c index 2f2a991..3c97e0e 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c @@ -1572,8 +1572,10 @@ static struct request *_make_request(struct request_queue *q, bool has_write, blk_queue_bounce(req->q, &bounce_bio); ret = blk_rq_append_bio(req, bounce_bio); - if (ret) + if (ret) { + _put_request(req); return ERR_PTR(ret); + } } return req;