Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61ef6da6 authored by Ilya Lesokhin's avatar Ilya Lesokhin Committed by David S. Miller
Browse files

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: 3c4d7559 ('tls: kernel TLS support')
Signed-off-by: default avatarIlya Lesokhin <ilyal@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a87bc2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;