From aaea735bb6dad1b37941bd2de4b61a58af55bcde Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Mon, 28 Apr 2014 23:42:51 -0700 Subject: [PATCH] netdev: Fix an use of uninitialized mutex. Commit 05bf6d3c62e1d (ovs-thread: Add checking for mutex and rwlock initialization.) helps find an use of uninitialized mutex (netdev_class_mutex) during upgrade. The assertion check aborts the ovs. This commit fixes the issue by adding the proper initialization. Bug #1239914. Bug #1240598. Bug #1240626. Signed-off-by: Alex Wang Acked-by: Ben Pfaff --- lib/netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netdev.c b/lib/netdev.c index 45a416520..2fc183471 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -151,6 +151,7 @@ netdev_run(void) { struct netdev_registered_class *rc; + netdev_initialize(); ovs_mutex_lock(&netdev_class_mutex); HMAP_FOR_EACH (rc, hmap_node, &netdev_classes) { if (rc->class->run) { -- 2.43.0