nvme-pci: Fix abort command id
Keith Busch
maintainerPATCH 1/1 nvme-pci: Fix abort command id
The request tag is no longer the only component of the command id.
Fixes e7006de6c2380 ("nvme: code command_id with a genctr for use-after-free validation")
Signed-off-by Keith Busch <[email protected]>
--- drivers/nvme/host/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/pci.c +1 -1
@@ -1330,7 +1330,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved) iod->aborted =1 ; 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); dev_warn(nvmeq->dev->ctrl.device,
Signature · 7 lines
2.25.4 _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by Sagi Grimberg <[email protected]>
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keith Busch
maintainerPatch applied. I was just confirming my commit key was still not accepted, but apparently it is working now. :)
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme