ofproto-dpif-xlate: Fix invalid memory read on port removal.
authorEthan Jackson <ethan@nicira.com>
Mon, 22 Jul 2013 19:54:09 +0000 (12:54 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 23 Jul 2013 22:53:35 +0000 (15:53 -0700)
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c

index eb4ed69..e555603 100644 (file)
@@ -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);