mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Steve French
parent
d1a30b9ddc
commit
dafe22bc67
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user