mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-09 12:53:20 +00:00
![Boris Pismenny](/assets/img/avatar_default.png)
copy_from_user could copy some partial information, as a result TLS_CRYPTO_INFO_READY(crypto_info) could be true while crypto_info is using uninitialzed data. This patch resets crypto_info when copy_from_user fails. fixes: 3c4d7559159b ("tls: kernel TLS support") Signed-off-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>