diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-19 03:28:59 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 16:21:54 +0100 |
commit | 1365a28eb2cc1ec0a48c4ed909d23e8db512d329 (patch) | |
tree | 5bc67f0aa915ac74305d4bed2d18c27355e17169 /src/selftest | |
parent | ee6d7e7c068af71d0f78ddf64cb28a6b3a5e72f6 (diff) |
selftest: initialize mutex in routingtable selftest
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/selftest')
-rw-r--r-- | src/selftest/routingtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selftest/routingtable.h b/src/selftest/routingtable.h index 4e30b98..473f0f9 100644 --- a/src/selftest/routingtable.h +++ b/src/selftest/routingtable.h @@ -378,6 +378,8 @@ bool __init routing_table_selftest(void) struct in6_addr ip; __be64 part; + mutex_init(&mutex); + mutex_lock(&mutex); routing_table_init(&t); |