diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 5eadb7a1ad7b..9c8b5bc2b9d8 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -2503,6 +2503,9 @@ static int tun_device_event(struct notifier_block *unused, | |||
2503 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); | 2503 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); |
2504 | struct tun_struct *tun = netdev_priv(dev); | 2504 | struct tun_struct *tun = netdev_priv(dev); |
2505 | 2505 | ||
2506 | if (dev->rtnl_link_ops != &tun_link_ops) | ||
2507 | return NOTIFY_DONE; | ||
2508 | |||
2506 | switch (event) { | 2509 | switch (event) { |
2507 | case NETDEV_CHANGE_TX_QUEUE_LEN: | 2510 | case NETDEV_CHANGE_TX_QUEUE_LEN: |
2508 | if (tun_queue_resize(tun)) | 2511 | if (tun_queue_resize(tun)) |