Skip to content

Commit 6fecdb5

Browse files
keithbuschgregkh
authored andcommitted
nvme-pci: Fix abort command id
commit 85f74ac upstream. The request tag is no longer the only component of the command id. Fixes: e7006de ("nvme: code command_id with a genctr for use-after-free validation") Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2d937cc commit 6fecdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)
13421342

13431343
memset(&cmd, 0, sizeof(cmd));
13441344
cmd.abort.opcode = nvme_admin_abort_cmd;
1345-
cmd.abort.cid = req->tag;
1345+
cmd.abort.cid = nvme_cid(req);
13461346
cmd.abort.sqid = cpu_to_le16(nvmeq->qid);
13471347

13481348
dev_warn(nvmeq->dev->ctrl.device,

0 commit comments

Comments
 (0)