]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme: Fix incorrect cdw15 value in passthru error logging
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 28 Jun 2025 18:12:32 +0000 (11:12 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 30 Jun 2025 06:31:45 +0000 (08:31 +0200)
Fix an error in nvme_log_err_passthru() where cdw14 was incorrectly
printed twice instead of cdw15. This fix ensures accurate logging of
the full passthrough command payload.

Fixes: 9f079dda1433 ("nvme: allow passthru cmd error logging")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index e533d791955d137911fc53f4f4de825796f8a43b..2ae36bce615e3afa49be433ece64f2a0275c132e 100644 (file)
@@ -386,7 +386,7 @@ static void nvme_log_err_passthru(struct request *req)
                nr->cmd->common.cdw12,
                nr->cmd->common.cdw13,
                nr->cmd->common.cdw14,
-               nr->cmd->common.cdw14);
+               nr->cmd->common.cdw15);
 }
 
 enum nvme_disposition {