mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
tls: Use kzalloc for aead_request allocation
Use kzalloc for aead_request allocation as
we don't set all the bits in the request.
Fixes: 3c4d755915 ('tls: kernel TLS support')
Signed-off-by: Ilya Lesokhin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0a87bc2e58
commit
61ef6da622
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ static int tls_do_encryption(struct tls_context *tls_ctx,
|
|||
struct aead_request *aead_req;
|
||||
int rc;
|
||||
|
||||
aead_req = kmalloc(req_size, flags);
|
||||
aead_req = kzalloc(req_size, flags);
|
||||
if (!aead_req)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue