diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-05-06 00:07:45 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-06-26 00:07:04 -0500 |
commit | f87d4f85f43f0d4b12ef64b015478d8053e1a33e (patch) | |
tree | 456b6ace8fe5f1f5465eed3c9df4cf0b720db654 /fs/smb | |
parent | 7bd9f0876fdef00f4e155be35e6b304981a53f80 (diff) | |
download | linux-f87d4f85f43f0d4b12ef64b015478d8053e1a33e.tar.gz linux-f87d4f85f43f0d4b12ef64b015478d8053e1a33e.tar.bz2 linux-f87d4f85f43f0d4b12ef64b015478d8053e1a33e.zip |
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>
Diffstat (limited to 'fs/smb')
-rw-r--r-- | fs/smb/server/smb_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/server/smb_common.c b/fs/smb/server/smb_common.c index 569e5eecdf3d..a7e81067bc99 100644 --- a/fs/smb/server/smb_common.c +++ b/fs/smb/server/smb_common.c @@ -359,8 +359,8 @@ static int smb1_check_user_session(struct ksmbd_work *work) */ static int smb1_allocate_rsp_buf(struct ksmbd_work *work) { - work->response_buf = kmalloc(MAX_CIFS_SMALL_BUFFER_SIZE, - GFP_KERNEL | __GFP_ZERO); + work->response_buf = kzalloc(MAX_CIFS_SMALL_BUFFER_SIZE, + GFP_KERNEL); work->response_sz = MAX_CIFS_SMALL_BUFFER_SIZE; if (!work->response_buf) { |