Skip to content

Commit

Permalink
ovs-thread: Fix OVS_ADAPTIVE_MUTEX_INITIALIZER.
Browse files Browse the repository at this point in the history
Commit 05bf6d3 (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 <[email protected]>
Acked-by: Jarno Rajahalme <[email protected]>
  • Loading branch information
blp committed May 1, 2014
1 parent c260f4e commit e38785b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ovs-thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e38785b

Please sign in to comment.