nvmet-tcp: fix a missing endianess conversion in nvmet_tcp_try_peek_pdu

[ Upstream commit 3a96bff229 ]

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

Fixes: 70525e5d82 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Christoph Hellwig 2023-12-26 08:13:29 +00:00 • committed by Greg Kroah-Hartman
commit 43bfda92f2