smb/server: fix return value of smb2_open()
[ Upstream commit 2186a11653 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a6d2d2ad82
commit
d2952183ee
@@ -3482,7 +3482,7 @@ err_out2:
|
||||
kfree(name);
|
||||
kfree(lc);
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int readdir_info_level_struct_sz(int info_level)
|
||||
|
||||
Reference in New Issue
Block a user