Message ID | 269e0999-599f-cdb6-8dc8-0a5cdc521eae@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 e188771..58782dc 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c @@ -1579,8 +1579,10 @@ static struct request *_make_request(struct request_queue *q, bool has_write, struct bio *bounce_bio = bio; ret = blk_rq_append_bio(req, &bounce_bio); - if (ret) + if (ret) { + _put_request(req); return ERR_PTR(ret); + } } return req;