]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea02d3c14a74390548d47a05707acc19aa91a27b
tree93a4036e470223e5c77ef6db0f00d6dee2a88b58
parent8659a996379d80a62ebd03983779d1f6590dfedd
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