Skip to content

Commit 85f74ac

Browse files
committed
nvme-pci: Fix abort command id
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]>
1 parent 298ba0e commit 85f74ac

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
@@ -1330,7 +1330,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)
13301330
iod->aborted = 1;
13311331

13321332
cmd.abort.opcode = nvme_admin_abort_cmd;
1333-
cmd.abort.cid = req->tag;
1333+
cmd.abort.cid = nvme_cid(req);
13341334
cmd.abort.sqid = cpu_to_le16(nvmeq->qid);
13351335

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

0 commit comments

Comments
 (0)