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

__process_request() will not print error messages if smb2_query_dir()
always returns 0.

Fix this by returning the correct value at the end of function.

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