Commit 0e2378ea authored by Namjae Jeon's avatar Namjae Jeon Committed by Steve French

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: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 0ba5439d
...@@ -1904,6 +1904,7 @@ int smb2_sess_setup(struct ksmbd_work *work) ...@@ -1904,6 +1904,7 @@ int smb2_sess_setup(struct ksmbd_work *work)
ksmbd_conn_set_need_negotiate(conn); ksmbd_conn_set_need_negotiate(conn);
} }
} }
smb2_set_err_rsp(work);
} else { } else {
unsigned int iov_len; unsigned int iov_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment