]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb/server: update some misguided comment of smb2_0_server_cmds proc
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Fri, 17 Oct 2025 10:46:12 +0000 (18:46 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Dec 2025 03:11:43 +0000 (21:11 -0600)
These functions return error code rather than always returning 0.

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

index 98d7f7259fe3d0ab393db1a1c743233051ab10c1..09ac08c818df0f5a3e448ca1078201b990d9a54a 100644 (file)
@@ -2158,7 +2158,7 @@ static int smb2_create_open_flags(bool file_present, __le32 access,
  * smb2_tree_disconnect() - handler for smb tree connect request
  * @work:      smb work containing request buffer
  *
- * Return:      0
+ * Return:      0 on success, otherwise error
  */
 int smb2_tree_disconnect(struct ksmbd_work *work)
 {
@@ -2222,7 +2222,7 @@ err_out:
  * smb2_session_logoff() - handler for session log off request
  * @work:      smb work containing request buffer
  *
- * Return:      0
+ * Return:      0 on success, otherwise error
  */
 int smb2_session_logoff(struct ksmbd_work *work)
 {
@@ -5834,7 +5834,7 @@ static noinline int smb2_close_pipe(struct ksmbd_work *work)
  * smb2_close() - handler for smb2 close file command
  * @work:      smb work containing close request buffer
  *
- * Return:     0
+ * Return:     0 on success, otherwise error
  */
 int smb2_close(struct ksmbd_work *work)
 {
@@ -5959,7 +5959,7 @@ out:
  * smb2_echo() - handler for smb2 echo(ping) command
  * @work:      smb work containing echo request buffer
  *
- * Return:     0
+ * Return:     0 on success, otherwise error
  */
 int smb2_echo(struct ksmbd_work *work)
 {