net/tls: Check for errors in tls_device_init
authorTariq Toukan <tariqt@nvidia.com>
Thu, 14 Jul 2022 07:07:54 +0000 (10:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:31 +0000 (21:24 +0200)
commit724ec407f9978ef890c3d585c5e1d93ef200339e
tree8b70803d61b596ba8898ebc9b785e36cc35781a3
parenta0706d7c142942dd891494c6fdd7d80f89363b66
net/tls: Check for errors in tls_device_init

[ Upstream commit 3d8c51b25a235e283e37750943bbf356ef187230 ]

Add missing error checks in tls_device_init.

Fixes: e8f69799810c ("net/tls: Add generic NIC offload infrastructure")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20220714070754.1428-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/tls.h
net/tls/tls_device.c
net/tls/tls_main.c