Skip to content

Commit

Permalink
radix-tree tests: properly initialize mutex
Browse files Browse the repository at this point in the history
The pthread_mutex_t in regression1.c wasn't being initialized properly.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ross Zwisler <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ross Zwisler authored and torvalds committed Oct 11, 2016
1 parent eec4852 commit e0176a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/radix-tree/regression1.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "regression.h"

static RADIX_TREE(mt_tree, GFP_KERNEL);
static pthread_mutex_t mt_lock;
static pthread_mutex_t mt_lock = PTHREAD_MUTEX_INITIALIZER;

struct page {
pthread_mutex_t lock;
Expand Down

0 comments on commit e0176a2

Please sign in to comment.