aboutsummaryrefslogtreecommitdiffstatshomepage
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-23 04:29:08 +0200
commit036742aa294f8411d783be07feb75893f0b8ad1d (patch)
tree850397ca1a06a70ba70866275382e19d5c2a1016
parentnetns: use time-based test instead of quantity-based (diff)
downloadwireguard-monolithic-historical-036742aa294f8411d783be07feb75893f0b8ad1d.tar.xz
wireguard-monolithic-historical-036742aa294f8411d783be07feb75893f0b8ad1d.zip
selftest: initialize mutex in routingtable selftest
-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);