mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-05-27 21:26:44 +03:00
socket: synchronize net on socket tear down
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -413,6 +413,7 @@ void socket_uninit(struct wireguard_device *wg)
|
||||
rcu_assign_pointer(wg->sock6, NULL);
|
||||
mutex_unlock(&wg->socket_update_lock);
|
||||
synchronize_rcu();
|
||||
synchronize_net();
|
||||
sock_free(old4);
|
||||
sock_free(old6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user