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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 19:03:47 +0000 (12:03 -0700)
commit7cba09c6d5bc73ebbd25a353742d9ddb7a713b95
treee29dc6d8d637fd36f906016dfa30aa8ee4365457
parentf0e0d04413fcce9bc76388839099aee93cd0d33b
tls: don't copy the key out of tls12_crypto_info_aes_gcm_128

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>
net/tls/tls_sw.c