ksmbd: add missing calling smb2_set_err_rsp() on error
[ Upstream commit 0e2378eaa2b3a663726cf740d4aaa8a801e2cb31 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
422c0cd016
commit
83b01f7330
1 changed files with 1 additions and 0 deletions
|
|
@ -1904,6 +1904,7 @@ out_err:
|
|||
ksmbd_conn_set_need_negotiate(conn);
|
||||
}
|
||||
}
|
||||
smb2_set_err_rsp(work);
|
||||
} else {
|
||||
unsigned int iov_len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue