]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb/server: fix debug log endianness in smb2_cancel()
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Wed, 17 Jun 2026 02:36:32 +0000 (02:36 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:03 +0000 (20:15 -0500)
Convert to CPU byte order to avoid incorrect debug log
on big-endian architectures.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c

index ba24040d05eba4fbf92af0b6fbe20432795cabcd..95c7b09c67437a706940fd24629ba31a3007f83c 100644 (file)
@@ -7459,7 +7459,8 @@ int smb2_cancel(struct ksmbd_work *work)
                hdr = ksmbd_resp_buf_next(work);
 
        ksmbd_debug(SMB, "smb2 cancel called on mid %llu, async flags 0x%x\n",
-                   hdr->MessageId, hdr->Flags);
+                   le64_to_cpu(hdr->MessageId),
+                   le32_to_cpu(hdr->Flags));
 
        if (hdr->Flags & SMB2_FLAGS_ASYNC_COMMAND) {
                command_list = &conn->async_requests;