From: ChenXiaoSong Date: Thu, 22 Aug 2024 08:20:54 +0000 (+0000) Subject: smb/server: update misguided comment of smb2_allocate_rsp_buf() X-Git-Tag: v6.11-rc5~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b7e0573a49064d9c94c114b4471327cd96ae39c;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index cd23517d96406..20846a4d3031f 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) {