diff options
| author | Ross Zwisler <[email protected]> | 2016-10-11 20:51:24 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-10-11 22:06:30 +0000 |
| commit | e0176a2f1e131294824d0e50e719cd12290cf06c (patch) | |
| tree | 24bc6be2fe5aea5423ad3221930a0c50c27cd423 /tools/testing/radix-tree/regression1.c | |
| parent | radix-tree tests: add iteration test (diff) | |
| download | kernel-e0176a2f1e131294824d0e50e719cd12290cf06c.tar.gz kernel-e0176a2f1e131294824d0e50e719cd12290cf06c.zip | |
radix-tree tests: properly initialize mutex
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]>
Diffstat (limited to 'tools/testing/radix-tree/regression1.c')
| -rw-r--r-- | tools/testing/radix-tree/regression1.c | 2 |
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 @@ #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; |
