route-table: Close netlink notifier before closing nln.
authorJesse Gross <jesse@nicira.com>
Tue, 27 Sep 2011 22:27:43 +0000 (15:27 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 27 Sep 2011 23:01:50 +0000 (16:01 -0700)
Commit 2ee6545f2bff7eb27e8c84965e3ff38dfa909bf6 "notifiers: Create
and destroy nln_notifiers." requires callers to explicitly create
and destroy netlink notifiers but route-table only did the creation
part.  This causes an assertion failure any time the netdev for a
vport is destroyed (for example ovs-dpctl show when there is a
tunnel port).

Bug #7464

lib/route-table.c

index a0c8121..cd3b37f 100644 (file)
@@ -188,6 +188,7 @@ route_table_unregister(void)
     register_count--;
 
     if (!register_count) {
+        nln_notifier_destroy(route_notifier);
         nln_destroy(nln);
         nln = NULL;