mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 14:34:19 +00:00
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>
This commit is contained in:
parent
eec4852543
commit
e0176a2f1e
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
||||||
#include "regression.h"
|
#include "regression.h"
|
||||||
|
|
||||||
static RADIX_TREE(mt_tree, GFP_KERNEL);
|
static RADIX_TREE(mt_tree, GFP_KERNEL);
|
||||||
static pthread_mutex_t mt_lock;
|
static pthread_mutex_t mt_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
struct page {
|
struct page {
|
||||||
pthread_mutex_t lock;
|
pthread_mutex_t lock;
|
||||||
|
|
Loading…
Add table
Reference in a new issue