diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-09 02:48:33 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-09 04:40:22 +0200 |
commit | e000d5c96d2fbe8864fa313b203e2210f24ed18c (patch) | |
tree | d96dc5123b4b49d811da3ad3d6614db3ee5fc641 /src/peer.c | |
parent | 89db52f3fba403124701fdda0503a3443ca6016e (diff) |
routingtable: only use device's mutex, not a special rt one
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ void peer_remove(struct wireguard_peer *peer) if (unlikely(!peer)) return; lockdep_assert_held(&peer->device->device_update_lock); - routing_table_remove_by_peer(&peer->device->peer_routing_table, peer); + routing_table_remove_by_peer(&peer->device->peer_routing_table, peer, &peer->device->device_update_lock); pubkey_hashtable_remove(&peer->device->peer_hashtable, peer); skb_queue_purge(&peer->staged_packet_queue); noise_handshake_clear(&peer->handshake); |