summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-14 23:58:36 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-02-14 23:58:36 +0100
commitf3a101f8bba341fa3e6413f4a8822453c07a5525 (patch)
treeac926ffeab779007f8867e4b89cba73620f4649b /src
parentccf83958942334da31a6688a994796b049594c76 (diff)
socket: remove useless synchronize_net
Utter non-sense from way back when. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Fixes: 8906775b ("socket: synchronize net on socket tear down")
Diffstat (limited to 'src')
-rw-r--r--src/socket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index 262f3b5..b0d6541 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -432,7 +432,6 @@ void wg_socket_reinit(struct wg_device *wg, struct sock *new4,
wg->incoming_port = ntohs(inet_sk(new4)->inet_sport);
mutex_unlock(&wg->socket_update_lock);
synchronize_rcu();
- synchronize_net();
sock_free(old4);
sock_free(old6);
}