projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce61b60
)
smb/server: fix return value of smb2_open()
author
ChenXiaoSong
<chenxiaosong@kylinos.cn>
Thu, 22 Aug 2024 08:20:50 +0000
(08:20 +0000)
committer
Steve French
<stfrench@microsoft.com>
Thu, 22 Aug 2024 14:52:00 +0000
(09:52 -0500)
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>
fs/smb/server/smb2pdu.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/smb/server/smb2pdu.c
b/fs/smb/server/smb2pdu.c
index e9204180919e35e5c5cb758ff7527e8375590682..55d4e69bd9c99c6e76bd666cde0ac3d30de098f9 100644
(file)
--- a/
fs/smb/server/smb2pdu.c
+++ b/
fs/smb/server/smb2pdu.c
@@
-3713,7
+3713,7
@@
err_out2:
kfree(name);
kfree(lc);
- return
0
;
+ return
rc
;
}
static int readdir_info_level_struct_sz(int info_level)