mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
nvme-pci: Fix abort command id
commit85f74acf09upstream. The request tag is no longer the only component of the command id. Fixes:e7006de6c2("nvme: code command_id with a genctr for use-after-free validation") Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d937cc12c
commit
6fecdb5b54
|
|
@ -1342,7 +1342,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)
|
||||||
|
|
||||||
memset(&cmd, 0, sizeof(cmd));
|
memset(&cmd, 0, sizeof(cmd));
|
||||||
cmd.abort.opcode = nvme_admin_abort_cmd;
|
cmd.abort.opcode = nvme_admin_abort_cmd;
|
||||||
cmd.abort.cid = req->tag;
|
cmd.abort.cid = nvme_cid(req);
|
||||||
cmd.abort.sqid = cpu_to_le16(nvmeq->qid);
|
cmd.abort.sqid = cpu_to_le16(nvmeq->qid);
|
||||||
|
|
||||||
dev_warn(nvmeq->dev->ctrl.device,
|
dev_warn(nvmeq->dev->ctrl.device,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user