Skip to content

Commit 2b7e057

Browse files
ChenXiaoSongSteve French
authored andcommitted
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>
1 parent 0dd771b commit 2b7e057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/server/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ int init_smb2_rsp_hdr(struct ksmbd_work *work)
519519
* smb2_allocate_rsp_buf() - allocate smb2 response buffer
520520
* @work: smb work containing smb request buffer
521521
*
522-
* Return: 0 on success, otherwise -ENOMEM
522+
* Return: 0 on success, otherwise error
523523
*/
524524
int smb2_allocate_rsp_buf(struct ksmbd_work *work)
525525
{

0 commit comments

Comments
 (0)