summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 71325bb..b66e8b5 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -177,8 +177,8 @@ void wg_peer_remove(struct wg_peer *peer)
void wg_peer_remove_all(struct wg_device *wg)
{
- struct list_head dead_peers = LIST_HEAD_INIT(dead_peers);
struct wg_peer *peer, *temp;
+ LIST_HEAD(dead_peers);
lockdep_assert_held(&wg->device_update_lock);