summaryrefslogtreecommitdiff
path: root/lib/ovs-thread.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2014-05-01 08:46:45 -0700
committerBen Pfaff <blp@nicira.com>2014-05-01 08:46:45 -0700
commite38785b39dc172d02bd2ae7db1a45a16e5517146 (patch)
treefef14fdbc5fa9b7fe59ff0ecca48ffbff8278773 /lib/ovs-thread.h
parentc260f4e2e01fa5e6d2dbfbfed5314cccbae6bc8d (diff)
downloadopenvswitch-e38785b39dc172d02bd2ae7db1a45a16e5517146.tar.gz
ovs-thread: Fix OVS_ADAPTIVE_MUTEX_INITIALIZER.
Commit 05bf6d3c62e1d (ovs-thread: Add checking for mutex and rwlock initialization.) updated mutex and rwlock initializers to set the "where" member to a nonnull value, but missed this one. This commit fixes the problem. This does not cause real problems in practice because OVS_ADAPTIVE_MUTEX_INITIALIZER has no existing users. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'lib/ovs-thread.h')
-rw-r--r--lib/ovs-thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ovs-thread.h b/lib/ovs-thread.h
index 180b66f89..68db71fba 100644
--- a/lib/ovs-thread.h
+++ b/lib/ovs-thread.h
@@ -40,7 +40,7 @@ struct OVS_LOCKABLE ovs_mutex {
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
#define OVS_ADAPTIVE_MUTEX_INITIALIZER \
- { PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP, NULL }
+ { PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP, "<unlocked>" }
#else
#define OVS_ADAPTIVE_MUTEX_INITIALIZER OVS_MUTEX_INITIALIZER
#endif