diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/macvlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 40faa368b07a..445e73c343ba 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -748,6 +748,9 @@ static int macvlan_device_event(struct notifier_block *unused, | |||
748 | list_for_each_entry_safe(vlan, next, &port->vlans, list) | 748 | list_for_each_entry_safe(vlan, next, &port->vlans, list) |
749 | vlan->dev->rtnl_link_ops->dellink(vlan->dev, NULL); | 749 | vlan->dev->rtnl_link_ops->dellink(vlan->dev, NULL); |
750 | break; | 750 | break; |
751 | case NETDEV_PRE_TYPE_CHANGE: | ||
752 | /* Forbid underlaying device to change its type. */ | ||
753 | return NOTIFY_BAD; | ||
751 | } | 754 | } |
752 | return NOTIFY_DONE; | 755 | return NOTIFY_DONE; |
753 | } | 756 | } |