projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9af8785
)
NVMe: fix freeing of wrong request in abort path
author
Sam Bradshaw
<sbradshaw@micron.com>
Wed, 10 Dec 2014 20:00:31 +0000
(13:00 -0700)
committer
Jens Axboe
<axboe@fb.com>
Wed, 10 Dec 2014 20:00:31 +0000
(13:00 -0700)
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>
drivers/block/nvme-core.c
patch
|
blob
|
history
diff --git
a/drivers/block/nvme-core.c
b/drivers/block/nvme-core.c
index bcbdf832b1b09727213f5532c23404c89df0a12d..cf9b8a8a24d3e867463653455ef53051ee4b3728 100644
(file)
--- a/
drivers/block/nvme-core.c
+++ b/
drivers/block/nvme-core.c
@@
-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);
}
}