1
0
Fork 0

tls: Use kzalloc for aead_request allocation

[ Upstream commit 61ef6da622 ]

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 <ilyal@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/10/head
Ilya Lesokhin 2017-11-13 10:22:44 +02:00 committed by Greg Kroah-Hartman
parent 2de359062f
commit f0e1cd056e
1 changed files with 1 additions and 1 deletions

View File

@ -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;