]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: fix endianness of command word prints in nvme_log_err_passthru()
authorJohn Garry <john.g.garry@oracle.com>
Mon, 30 Jun 2025 16:21:53 +0000 (16:21 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 14 Jul 2025 13:51:06 +0000 (15:51 +0200)
commitdd8e34afd6709cb2f9c0e63340f567e6c066ed8e
tree62b75012294e9739c0802e2dd5ba0741b777c561
parent80d7762e0a42307ee31b21f090e21349b98c14f6
nvme: fix endianness of command word prints in nvme_log_err_passthru()

The command word members of struct nvme_common_command are __le32 type,
so use helper le32_to_cpu() to read them properly.

Fixes: 9f079dda1433 ("nvme: allow passthru cmd error logging")
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Alan Adamson <alan.adamson@oracle.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c