|
@@ -675,6 +675,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
|
|
|
|
|
|
if (pending) {
|
|
if (pending) {
|
|
hlist_del(&forw_packet->list);
|
|
hlist_del(&forw_packet->list);
|
|
|
|
+ if (!forw_packet->own)
|
|
|
|
+ atomic_inc(&bat_priv->bcast_queue_left);
|
|
|
|
+
|
|
batadv_forw_packet_free(forw_packet);
|
|
batadv_forw_packet_free(forw_packet);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -702,6 +705,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
|
|
|
|
|
|
if (pending) {
|
|
if (pending) {
|
|
hlist_del(&forw_packet->list);
|
|
hlist_del(&forw_packet->list);
|
|
|
|
+ if (!forw_packet->own)
|
|
|
|
+ atomic_inc(&bat_priv->batman_queue_left);
|
|
|
|
+
|
|
batadv_forw_packet_free(forw_packet);
|
|
batadv_forw_packet_free(forw_packet);
|
|
}
|
|
}
|
|
}
|
|
}
|