cifsd: Handle ksmbd_session_rpc_open() failure in create_smb2_pipe()
authorMarios Makassikis <mmakassikis@freebox.fr>
Thu, 6 May 2021 02:38:35 +0000 (11:38 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:47 +0000 (19:15 -0500)
commit79caa9606df1504b3b5104457cbb5d759f0e5fae
tree93a4036e470223e5c77ef6db0f00d6dee2a88b58
parenta4382db9bac314440f662be91ec8010465e67603
cifsd: Handle ksmbd_session_rpc_open() failure in create_smb2_pipe()

Currently, a SMB2 client does not receive an error message if
ksmbd_session_rpc_open() fails when opening a pipe.
Fix this by responding with STATUS_NO_MEMORY or STATUS_INVALID_PARAMETER
depending on the error that occurred.

Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c