aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2016-10-11 16:51:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-11 18:06:30 -0400
commite0176a2f1e131294824d0e50e719cd12290cf06c (patch)
tree24bc6be2fe5aea5423ad3221930a0c50c27cd423
parenteec4852543e4e6edbb6cab512fd1edc70c1f7a18 (diff)
radix-tree tests: properly initialize mutex
The pthread_mutex_t in regression1.c wasn't being initialized properly. Link: http://lkml.kernel.org/r/20160815194237.25967-4-ross.zwisler@linux.intel.com Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--tools/testing/radix-tree/regression1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/radix-tree/regression1.c b/tools/testing/radix-tree/regression1.c
index 2d03a63bb79c..0d6813a61b37 100644
--- a/tools/testing/radix-tree/regression1.c
+++ b/tools/testing/radix-tree/regression1.c
@@ -43,7 +43,7 @@
43#include "regression.h" 43#include "regression.h"
44 44
45static RADIX_TREE(mt_tree, GFP_KERNEL); 45static RADIX_TREE(mt_tree, GFP_KERNEL);
46static pthread_mutex_t mt_lock; 46static pthread_mutex_t mt_lock = PTHREAD_MUTEX_INITIALIZER;
47 47
48struct page { 48struct page {
49 pthread_mutex_t lock; 49 pthread_mutex_t lock;