Message ID | 20240822082101.391272-2-chenxiaosong@chenxiaosong.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | smb: fix some bugs, move duplicate definitions to common header file, and some small cleanups | expand |
On Thu, Aug 22, 2024 at 5:22 PM <chenxiaosong@chenxiaosong.com> wrote: > > From: ChenXiaoSong <chenxiaosong@kylinos.cn> > > 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> Applied it to #ksmbd-for-next-next. Thanks.
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index 2df1354288e6..d8a827e0dced 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -3710,7 +3710,7 @@ int smb2_open(struct ksmbd_work *work) kfree(name); kfree(lc); - return 0; + return rc; } static int readdir_info_level_struct_sz(int info_level)