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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 7bd9f08 commit f87d4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)