netdev: Fix an use of uninitialized mutex.
authorAlex Wang <alexw@nicira.com>
Tue, 29 Apr 2014 06:42:51 +0000 (23:42 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 29 Apr 2014 14:54:49 +0000 (07:54 -0700)
commitaaea735bb6dad1b37941bd2de4b61a58af55bcde
treee170988e52ee5219bea82cc4bc3afe4eb871dfdc
parentaeaae11fceb0939001705b7e4024cff37dd94c5c
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 <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev.c