From: Ethan Jackson Date: Mon, 22 Jul 2013 19:54:09 +0000 (-0700) Subject: ofproto-dpif-xlate: Fix invalid memory read on port removal. X-Git-Tag: sliver-openvswitch-2.0.90-1~34^2~41 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e621a12d908695881a54834e70ead71d6d99639b;p=sliver-openvswitch.git ofproto-dpif-xlate: Fix invalid memory read on port removal. Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index eb4ed6957..e5556036b 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -400,7 +400,10 @@ xlate_ofport_remove(struct ofport_dpif *ofport) xport->peer = NULL; } - list_remove(&xport->bundle_node); + if (xport->xbundle) { + list_remove(&xport->bundle_node); + } + hmap_remove(&xports, &xport->hmap_node); hmap_remove(&xport->xbridge->xports, &xport->ofp_node);