]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme: fix incorrect variable in io cqes error message
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 25 Jun 2025 04:16:31 +0000 (21:16 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2025 11:38:07 +0000 (13:38 +0200)
Correct the error log to print ctrl->io_cqes instead of incorrectly using
ctrl->io_sqes for the io cqes size check.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/pci-epf.c

index a4295a5b8d280f4cba246b9651fb21880183c504..44288d8f5aa111416dacd6871ab5c271498cb9f0 100644 (file)
@@ -1860,7 +1860,7 @@ static int nvmet_pci_epf_enable_ctrl(struct nvmet_pci_epf_ctrl *ctrl)
        ctrl->io_cqes = 1UL << nvmet_cc_iocqes(ctrl->cc);
        if (ctrl->io_cqes < sizeof(struct nvme_completion)) {
                dev_err(ctrl->dev, "Unsupported I/O CQES %zu (need %zu)\n",
-                       ctrl->io_sqes, sizeof(struct nvme_completion));
+                       ctrl->io_cqes, sizeof(struct nvme_completion));
                goto err;
        }