NVMe: fix freeing of wrong request in abort path

We allocate 'abort_req', but free 'req' in case of an error
submitting the IO.

Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Sam Bradshaw 2014-12-10 13:00:31 -07:00 committed by Jens Axboe
parent 9af8785a38
commit c87fd5407e

View File

@ -1053,7 +1053,7 @@ static void nvme_abort_req(struct request *req)
dev_warn(nvmeq->q_dmadev,
"Could not abort I/O %d QID %d",
req->tag, nvmeq->qid);
blk_mq_free_request(req);
blk_mq_free_request(abort_req);
}
}