From 4c25956de55aefc96f16ddc5324c8a304b570aff Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 25 Feb 2019 22:56:40 +0100 Subject: peer: only synchronize_rcu_bh and traverse trie once when removing all peers Signed-off-by: Jason A. Donenfeld --- src/device.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/device.c') 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); -- cgit v1.2.3