diff --git a/net/bridge/br.c b/net/bridge/br.c index e69fc87a13e053f2d8141a2aab430be5c62785e7..3c8e4b38f0548fa0eb4fcab7faba97b7affd64b8 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c @@ -129,7 +129,8 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v break; } - br_vlan_port_event(p, event); + if (event != NETDEV_UNREGISTER) + br_vlan_port_event(p, event); /* Events that may cause spanning tree to refresh */ if (!notified && (event == NETDEV_CHANGEADDR || event == NETDEV_UP ||