nvmet-tcp: fix a missing endianess conversion in nvmet_tcp_try_peek_pdu
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Dec 2023 08:13:29 +0000 (08:13 +0000)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Jan 2024 16:09:40 +0000 (08:09 -0800)
commit3a96bff229d6e3016805fd6c3dba0655ccba01eb
tree82e7c2b9d67eb986e8a395e4e18c18de4cfdbd6a
parent2abd2c39ada8200ca5f02d483dccfa82799f51a7
nvmet-tcp: fix a missing endianess conversion in nvmet_tcp_try_peek_pdu

No, a __le32 cast doesn't magically byteswap on big-endian systems..

Fixes: 70525e5d82f6 ("nvmet-tcp: peek icreq before starting TLS")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/tcp.c