aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tls/tls_device.c')
-rw-r--r--net/tls/tls_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c
index 9bd0286d5407..178a15c27628 100644
--- a/net/tls/tls_device.c
+++ b/net/tls/tls_device.c
@@ -732,7 +732,8 @@ static int tls_dev_event(struct notifier_block *this, unsigned long event,
{
struct net_device *dev = netdev_notifier_info_to_dev(ptr);
- if (!(dev->features & NETIF_F_HW_TLS_TX))
+ if (!dev->tlsdev_ops &&
+ !(dev->features & NETIF_F_HW_TLS_TX))
return NOTIFY_DONE;
switch (event) {