]> www.infradead.org Git - linux.git/commit
smb/server: fix return value of smb2_open()
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Thu, 22 Aug 2024 08:20:50 +0000 (08:20 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Aug 2024 14:52:00 +0000 (09:52 -0500)
commit2186a116538a715b20e15f84fdd3545e5fe0a39b
tree3acee8abdf4610ee23d2ffab5f2173d1147e8dbf
parentce61b605a00502c59311d0a4b1f58d62b48272d0
smb/server: fix return value of smb2_open()

In most error cases, error code is not returned in smb2_open(),
__process_request() will not print error message.

Fix this by returning the correct value at the end of smb2_open().

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c