Skip to content

Commit df693f1

Browse files
committed
Merge tag 'batadv-net-pullrequest-20210608' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== Here is a batman-adv bugfix: - Avoid WARN_ON timing related checks, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 9bb392f + 9f460ae commit df693f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

net/batman-adv/bat_iv_ogm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,10 @@ static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet)
409409
if (WARN_ON(!forw_packet->if_outgoing))
410410
return;
411411

412-
if (WARN_ON(forw_packet->if_outgoing->soft_iface != soft_iface))
412+
if (forw_packet->if_outgoing->soft_iface != soft_iface) {
413+
pr_warn("%s: soft interface switch for queued OGM\n", __func__);
413414
return;
415+
}
414416

415417
if (forw_packet->if_incoming->if_status != BATADV_IF_ACTIVE)
416418
return;

0 commit comments

Comments
 (0)