tls: don't copy the key out of tls12_crypto_info_aes_gcm_128
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 12 Sep 2018 15:44:41 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:06:01 +0000 (03:06 -0700)
commit10cacaf13189711ce5c81222aaae3cd61a5ca848
treedb33e94fa16fafb19819e49eea679602e73a990a
parentee547ed7dee4c888c63bd136e73dfa7c96466064
tls: don't copy the key out of tls12_crypto_info_aes_gcm_128

[ Upstream commit 7cba09c6d5bc73ebbd25a353742d9ddb7a713b95 ]

There's no need to copy the key to an on-stack buffer before calling
crypto_aead_setkey().

Fixes: 3c4d7559159b ("tls: kernel TLS support")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tls/tls_sw.c