ksmbd: fix wrong error response status by using set_smb2_rsp_status()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 9 Oct 2023 14:58:15 +0000 (23:58 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 13 Oct 2023 03:44:05 +0000 (22:44 -0500)
commitbe0f89d4419dc5413a1cf06db3671c9949be0d52
tree0111b447baa724d6e0a153e227cdc3d95faeaacd
parentf43328357defc0dc9d28dbd06dc3361fd2b22e28
ksmbd: fix wrong error response status by using set_smb2_rsp_status()

set_smb2_rsp_status() after __process_request() sets the wrong error
status. This patch resets all iov vectors and sets the error status
on clean one.

Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c