Commit c87fd540 authored by Sam Bradshaw's avatar Sam Bradshaw Committed by Jens Axboe

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: default avatarSam Bradshaw <sbradshaw@micron.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 9af8785a
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment