summaryrefslogtreecommitdiffstats
path: root/fs/smb
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-08-29 12:37:40 +0200
committerSteve French <stfrench@microsoft.com>2023-08-29 19:30:20 +0200
commit0e2378eaa2b3a663726cf740d4aaa8a801e2cb31 (patch)
tree6fe84a2d80f2518d3ec2254cab47cd07d94213db /fs/smb
parentksmbd: replace one-element array with flex-array member in struct smb2_ea_info (diff)
downloadlinux-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/smb')
-rw-r--r--fs/smb/server/smb2pdu.c1
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;