ksmbd: fix wrong error status return on session setup
authorNamjae Jeon <namjae.jeon@samsung.com>
Fri, 16 Jul 2021 05:52:09 +0000 (14:52 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 19 Jul 2021 07:20:01 +0000 (16:20 +0900)
commit58090b175271870842d823622013d4499f462a10
tree7cf54414473c187ee4ba32ce11236924a7e17272
parente4b60e92d4f878b774eca22fa4c00fa04f6354b4
ksmbd: fix wrong error status return on session setup

When user insert wrong password, ksmbd return STATUS_INVALID_PARAMETER
error status to client. It will make user confusing whether it is not
password problem. This patch change error status to
STATUS_LOGON_FAILURE. and return STATUS_INSUFFICIENT_RESOURCES if memory
allocation failed on session setup.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c