diff options
author | Tariq Toukan <tariqt@nvidia.com> | 2022-07-14 09:07:54 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-14 19:12:39 +0200 |
commit | 3d8c51b25a235e283e37750943bbf356ef187230 (patch) | |
tree | 2a825e07fd607d25694c2b76c151239e7ab2786a /net/tls/tls_device.c | |
parent | MAINTAINERS: Add an additional maintainer to the AMD XGBE driver (diff) | |
download | linux-3d8c51b25a235e283e37750943bbf356ef187230.tar.xz linux-3d8c51b25a235e283e37750943bbf356ef187230.zip |
net/tls: Check for errors in tls_device_init
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>
Diffstat (limited to 'net/tls/tls_device.c')
-rw-r--r-- | net/tls/tls_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index ec6f4b699a2b..ce827e79c66a 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c @@ -1419,9 +1419,9 @@ static struct notifier_block tls_dev_notifier = { .notifier_call = tls_dev_event, }; -void __init tls_device_init(void) +int __init tls_device_init(void) { - register_netdevice_notifier(&tls_dev_notifier); + return register_netdevice_notifier(&tls_dev_notifier); } void __exit tls_device_cleanup(void) |