diff options
| author | ChenXiaoSong <chenxiaosong@kylinos.cn> | 2025-10-17 18:46:09 +0800 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-11-30 21:11:43 -0600 |
| commit | dafe22bc676d4fcb1ccb193c8cc3dda57942509d (patch) | |
| tree | b047d6d584bf79270c046fed98052ac21228bb95 /fs/smb | |
| parent | d1a30b9ddc3d4c0e38666bd166d51863cb39f1c4 (diff) | |
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>
Diffstat (limited to 'fs/smb')
| -rw-r--r-- | fs/smb/server/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index d676558f7bb6..a3b7b648227a 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -4550,7 +4550,7 @@ err_out2: smb2_set_err_rsp(work); ksmbd_fd_put(work, dir_fp); ksmbd_revert_fsids(work); - return 0; + return rc; } /** |