Skip to content

Commit dafe22b

Browse files
ChenXiaoSongsmfrench
authored andcommitted
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>
1 parent d1a30b9 commit dafe22b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/server/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4550,7 +4550,7 @@ int smb2_query_dir(struct ksmbd_work *work)
45504550
smb2_set_err_rsp(work);
45514551
ksmbd_fd_put(work, dir_fp);
45524552
ksmbd_revert_fsids(work);
4553-
return 0;
4553+
return rc;
45544554
}
45554555

45564556
/**

0 commit comments

Comments
 (0)