From: Ethan Jackson Date: Mon, 31 Jan 2011 20:02:54 +0000 (-0800) Subject: lib: netdev-vport improperly initialized route-table. X-Git-Tag: v1.1.0~366 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ba615c2b5b251eea264b721a7f24112b8936a63a;p=sliver-openvswitch.git lib: netdev-vport improperly initialized route-table. netdev-vport unregistered the routing table in its destroy function, but registered it in its init function. This could cause the routing table to be unregistered when it shouldn't have been causing segmentation faults. Bug #4526. --- diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 436be8c67..4da44da1e 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -193,7 +193,6 @@ static int netdev_vport_init(void) { netdev_vport_tnl_iface_init(); - route_table_register(); return 0; } @@ -253,6 +252,7 @@ netdev_vport_create(const struct netdev_class *netdev_class, const char *name, dev->options = options; *netdev_devp = &dev->netdev_dev; + route_table_register(); } else { ofpbuf_delete(options); }