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 | 311ca62267db478ef95cf48bf7487b3434c35ba0 (patch) | |
tree | afe178c3f741fcbe9582f10e2496fdf17bd5dc55 /src/selftest | |
parent | netns: use time-based test instead of quantity-based (diff) | |
download | wireguard-monolithic-historical-311ca62267db478ef95cf48bf7487b3434c35ba0.tar.xz wireguard-monolithic-historical-311ca62267db478ef95cf48bf7487b3434c35ba0.zip |
selftest: initialize mutex in routingtable selftest
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); |