aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-19 03:28:59 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 16:21:54 +0100
commit311ca62267db478ef95cf48bf7487b3434c35ba0 (patch)
treeafe178c3f741fcbe9582f10e2496fdf17bd5dc55 /src
parentnetns: use time-based test instead of quantity-based (diff)
downloadwireguard-monolithic-historical-311ca62267db478ef95cf48bf7487b3434c35ba0.tar.xz
wireguard-monolithic-historical-311ca62267db478ef95cf48bf7487b3434c35ba0.zip
selftest: initialize mutex in routingtable selftest
Diffstat (limited to 'src')
-rw-r--r--src/selftest/routingtable.h2
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);