mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
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:
parent
9af8785a38
commit
c87fd5407e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user