diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-08-29 12:37:40 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-08-29 19:30:20 +0200 |
commit | 0e2378eaa2b3a663726cf740d4aaa8a801e2cb31 (patch) | |
tree | 6fe84a2d80f2518d3ec2254cab47cd07d94213db /fs | |
parent | ksmbd: replace one-element array with flex-array member in struct smb2_ea_info (diff) | |
download | linux-0e2378eaa2b3a663726cf740d4aaa8a801e2cb31.tar.xz linux-0e2378eaa2b3a663726cf740d4aaa8a801e2cb31.zip |
ksmbd: add missing calling smb2_set_err_rsp() on error
If some error happen on smb2_sess_setup(), Need to call
smb2_set_err_rsp() to set error response.
This patch add missing calling smb2_set_err_rsp() on error.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/server/smb2pdu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index d12d995f52d7..3dbde9fb775f 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -1904,6 +1904,7 @@ out_err: ksmbd_conn_set_need_negotiate(conn); } } + smb2_set_err_rsp(work); } else { unsigned int iov_len; |