mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
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>
This commit is contained in:
parent
ce61b605a0
commit
2186a11653
@ -3713,7 +3713,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)
|
||||
|
Loading…
Reference in New Issue
Block a user