diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 22:56:40 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 22:58:42 +0100 |
commit | 4c25956de55aefc96f16ddc5324c8a304b570aff (patch) | |
tree | 620efc40874f29a50f0a308556e8b39db5327c6a /src/device.c | |
parent | 0e4996e2c4fd414ef1554911a6401f353312829a (diff) |
peer: only synchronize_rcu_bh and traverse trie once when removing all peers
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 1 |
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); |