From 7ca5f243114d0c029dfa551c7282d50487bfa8b0 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 6 Jan 2011 16:17:23 -0800 Subject: [PATCH] vswitchd: Fix segmentation fault with bonded ports. This commit fixes a segmentation fault which could occur when a bonded port was destroyed. --- vswitchd/bridge.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index e2d26c00..f7890e95 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3984,6 +3984,10 @@ iface_destroy(struct iface *iface) bool del_active = port->active_iface == iface->port_ifidx; struct iface *del; + if (port->monitor) { + netdev_monitor_remove(port->monitor, iface->netdev); + } + shash_find_and_delete_assert(&br->iface_by_name, iface->name); if (iface->dp_ifidx >= 0) { -- 2.30.2