summaryrefslogtreecommitdiff
path: root/fs/smb
diff options
context:
space:
mode:
authorChenXiaoSong <chenxiaosong@kylinos.cn>2024-08-22 08:20:54 +0000
committerSteve French <stfrench@microsoft.com>2024-08-22 09:52:00 -0500
commit2b7e0573a49064d9c94c114b4471327cd96ae39c (patch)
tree31819a9c08f5341ddf61f460067d7dd4d55ad8bd /fs/smb
parent0dd771b7d60b8281f10f6721783c60716d22075f (diff)
smb/server: update misguided comment of smb2_allocate_rsp_buf()
smb2_allocate_rsp_buf() will return other error code except -ENOMEM. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/server/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c
index cd23517d9640..20846a4d3031 100644
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -519,7 +519,7 @@ int init_smb2_rsp_hdr(struct ksmbd_work *work)
* smb2_allocate_rsp_buf() - allocate smb2 response buffer
* @work: smb work containing smb request buffer
*
- * Return: 0 on success, otherwise -ENOMEM
+ * Return: 0 on success, otherwise error
*/
int smb2_allocate_rsp_buf(struct ksmbd_work *work)
{