OSDN Git Service

tls: Use kzalloc for aead_request allocation
authorIlya Lesokhin <ilyal@mellanox.com>
Mon, 13 Nov 2017 08:22:44 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:53:13 +0000 (09:53 +0100)
commitf0e1cd056e99c1ac7ec59f46ad152c11f1b69570
treed0c2cf1ba1509a9e51eb13b0689a09417ff3f8e2
parent2de359062feea90c1e8baa2fa9771ba98d1fadfa
tls: Use kzalloc for aead_request allocation

[ Upstream commit 61ef6da622aa7b66bf92991bd272490eea6c712e ]

Use kzalloc for aead_request allocation as
we don't set all the bits in the request.

Fixes: 3c4d7559159b ('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>
net/tls/tls_sw.c