Skip to content

Commit

Permalink
Merge tag 'batadv-net-for-davem-20200306' of git://git.open-mesh.org/…
Browse files Browse the repository at this point in the history
…linux-merge

Simon Wunderlich says:

====================
Here is a batman-adv bugfix:

 - Don't schedule OGM for disabled interface, by Sven Eckelmann
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 10, 2020
2 parents a8015de + 8e8ce08 commit 2362059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,10 @@ static void batadv_iv_ogm_schedule_buff(struct batadv_hard_iface *hard_iface)

lockdep_assert_held(&hard_iface->bat_iv.ogm_buff_mutex);

/* interface already disabled by batadv_iv_ogm_iface_disable */
if (!*ogm_buff)
return;

/* the interface gets activated here to avoid race conditions between
* the moment of activating the interface in
* hardif_activate_interface() where the originator mac is set and
Expand Down

0 comments on commit 2362059

Please sign in to comment.