summaryrefslogtreecommitdiffstats
path: root/kernel/net/batman-adv/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/batman-adv/send.c')
-rw-r--r--kernel/net/batman-adv/send.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/net/batman-adv/send.c b/kernel/net/batman-adv/send.c
index f66432480..0e0c3b8ed 100644
--- a/kernel/net/batman-adv/send.c
+++ b/kernel/net/batman-adv/send.c
@@ -630,6 +630,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
if (pending) {
hlist_del(&forw_packet->list);
+ if (!forw_packet->own)
+ atomic_inc(&bat_priv->bcast_queue_left);
+
batadv_forw_packet_free(forw_packet);
}
}
@@ -657,6 +660,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
if (pending) {
hlist_del(&forw_packet->list);
+ if (!forw_packet->own)
+ atomic_inc(&bat_priv->batman_queue_left);
+
batadv_forw_packet_free(forw_packet);
}
}