Commit 2186a116 authored by ChenXiaoSong's avatar ChenXiaoSong Committed by Steve French

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: default avatarChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent ce61b605
...@@ -3713,7 +3713,7 @@ int smb2_open(struct ksmbd_work *work) ...@@ -3713,7 +3713,7 @@ int smb2_open(struct ksmbd_work *work)
kfree(name); kfree(name);
kfree(lc); kfree(lc);
return 0; return rc;
} }
static int readdir_info_level_struct_sz(int info_level) static int readdir_info_level_struct_sz(int info_level)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment