]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jul 2022 17:12:39 +0000 (10:12 -0700)
commited00caf2bd5d47598c0776446bef0b6786d6264e
tree2a825e07fd607d25694c2b76c151239e7ab2786a
parenta6f4b2a1e5e259fd9522bf4c4bcc96896a2052ad
net/tls: Check for errors in tls_device_init

Add missing error checks in tls_device_init.

Fixes: e31ec02c9978 ("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>
include/net/tls.h
net/tls/tls_device.c
net/tls/tls_main.c