smb/server: fix return value of smb2_open()

BugLink: https://bugs.launchpad.net/bugs/2086138

[ Upstream commit 2186a116538a715b20e15f84fdd3545e5fe0a39b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
ChenXiaoSong
2024-08-22 08:20:50 +00:00
committed by Mehmet Basaran
parent 4966d5e21c
commit aca6593ba5
+1 -1
View File
@@ -3482,7 +3482,7 @@ err_out2:
kfree(name);
kfree(lc);
return 0;
return rc;
}
static int readdir_info_level_struct_sz(int info_level)