]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/server: fix return value of smb2_read()
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Fri, 17 Oct 2025 10:46:07 +0000 (18:46 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Dec 2025 03:11:43 +0000 (21:11 -0600)
commitc5b462e35373a68a5a7954f5e00383998cc7fe92
tree7f64a431e1605159730507195d4a9d3b0f8ed39e
parent3a597e6e9701eb7af04864ffdc0a6a91bc8c6496
smb/server: fix return value of smb2_read()

STATUS_END_OF_FILE maps to the linux error -ENODATA. Perhaps in the future
we can move client/smb2maperror.c into common/ and then call
map_smb2_to_linux_error() to get the linux error.

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