summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/send.c b/src/send.c
index e9fe881..107e5f6 100644
--- a/src/send.c
+++ b/src/send.c
@@ -231,7 +231,7 @@ static void packet_create_data(struct wireguard_peer *peer, struct sk_buff_head
ctx = kmem_cache_alloc(crypt_ctx_cache, GFP_ATOMIC);
if (unlikely(!ctx)) {
- skb_queue_purge(packets);
+ __skb_queue_purge(packets);
goto err_drop_refs;
}
/* This function consumes the passed references to peer and keypair. */
@@ -243,7 +243,7 @@ static void packet_create_data(struct wireguard_peer *peer, struct sk_buff_head
if (likely(queue_enqueue_per_device_and_peer(&wg->encrypt_queue, &peer->tx_queue, ctx, wg->packet_crypt_wq, &wg->encrypt_queue.last_cpu)))
return; /* Successful. No need to fall through to drop references below. */
- skb_queue_purge(&ctx->packets);
+ __skb_queue_purge(&ctx->packets);
kmem_cache_free(crypt_ctx_cache, ctx);
err_drop_refs:
@@ -288,7 +288,7 @@ void packet_send_staged_packets(struct wireguard_peer *peer)
goto out_invalid;
}
- /* We pass off our peer and keypair references too the data subsystem and return. */
+ /* We pass off our peer and keypair references to the data subsystem and return. */
packet_create_data(peer_rcu_get(peer), &packets, keypair);
return;