Skip to content

Commit f87d4f8

Browse files
namjaejeonsmfrench
authored andcommitted
ksmbd: use kzalloc() instead of __GFP_ZERO
Use kzalloc() instead of __GFP_ZERO. Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 7bd9f08 commit f87d4f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/server/smb_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ static int smb1_check_user_session(struct ksmbd_work *work)
359359
*/
360360
static int smb1_allocate_rsp_buf(struct ksmbd_work *work)
361361
{
362-
work->response_buf = kmalloc(MAX_CIFS_SMALL_BUFFER_SIZE,
363-
GFP_KERNEL | __GFP_ZERO);
362+
work->response_buf = kzalloc(MAX_CIFS_SMALL_BUFFER_SIZE,
363+
GFP_KERNEL);
364364
work->response_sz = MAX_CIFS_SMALL_BUFFER_SIZE;
365365

366366
if (!work->response_buf) {

0 commit comments

Comments
 (0)