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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 07:26:34 +0000 (16:26 +0900)
commit61ef6da622aa7b66bf92991bd272490eea6c712e
treeee84189e00cb00da682483070b9db7e7051d933f
parent0a87bc2e58a687fe14817b9c7f73e68570ba33c6
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: 3c4d7559159b ('tls: kernel TLS support')
Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c