Skip to content

Commit 4e192be

Browse files
committed
Merge tag 'batadv-net-pullrequest-20240201' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== Here are some batman-adv bugfixes: - fix a timeout issue and a memory leak in batman-adv multicast, by Linus Lüssing (2 patches) * tag 'batadv-net-pullrequest-20240201' of git://git.open-mesh.org/linux-merge: batman-adv: mcast: fix memory leak on deleting a batman-adv interface batman-adv: mcast: fix mcast packet type counter on timeouted nodes ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 069a6ed + 0a186b4 commit 4e192be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/batman-adv/multicast.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,7 @@ void batadv_mcast_free(struct batadv_priv *bat_priv)
21752175
cancel_delayed_work_sync(&bat_priv->mcast.work);
21762176

21772177
batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_MCAST, 2);
2178+
batadv_tvlv_handler_unregister(bat_priv, BATADV_TVLV_MCAST_TRACKER, 1);
21782179
batadv_tvlv_handler_unregister(bat_priv, BATADV_TVLV_MCAST, 2);
21792180

21802181
/* safely calling outside of worker, as worker was canceled above */
@@ -2198,6 +2199,8 @@ void batadv_mcast_purge_orig(struct batadv_orig_node *orig)
21982199
BATADV_MCAST_WANT_NO_RTR4);
21992200
batadv_mcast_want_rtr6_update(bat_priv, orig,
22002201
BATADV_MCAST_WANT_NO_RTR6);
2202+
batadv_mcast_have_mc_ptype_update(bat_priv, orig,
2203+
BATADV_MCAST_HAVE_MC_PTYPE_CAPA);
22012204

22022205
spin_unlock_bh(&orig->mcast_handler_lock);
22032206
}

0 commit comments

Comments
 (0)