aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-25 22:56:40 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-25 22:58:42 +0100
commitbbc5135f29e70508f8540ecbb9329707a8036ae5 (patch)
tree975559a4bdd7a15564577bbaf77b39a177a8978a /src/device.c
parentnetlink: don't remove allowed ips for new peers (diff)
downloadwireguard-monolithic-historical-bbc5135f29e70508f8540ecbb9329707a8036ae5.tar.xz
wireguard-monolithic-historical-bbc5135f29e70508f8540ecbb9329707a8036ae5.zip
peer: only synchronize_rcu_bh and traverse trie once when removing all peers
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 15911b2..2866dd9 100644
--- a/src/device.c
+++ b/src/device.c
@@ -237,7 +237,6 @@ static void wg_destruct(struct net_device *dev)
mutex_lock(&wg->device_update_lock);
wg->incoming_port = 0;
wg_socket_reinit(wg, NULL, NULL);
- wg_allowedips_free(&wg->peer_allowedips, &wg->device_update_lock);
/* The final references are cleared in the below calls to destroy_workqueue. */
wg_peer_remove_all(wg);
destroy_workqueue(wg->handshake_receive_wq);