ksmbd: add missing calling smb2_set_err_rsp() on error
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 29 Aug 2023 10:37:40 +0000 (19:37 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 29 Aug 2023 17:30:20 +0000 (12:30 -0500)
commit0e2378eaa2b3a663726cf740d4aaa8a801e2cb31
tree6fe84a2d80f2518d3ec2254cab47cd07d94213db
parent0ba5439d9afa2722e7728df56f272c89987540a4
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>
fs/smb/server/smb2pdu.c