Skip to content

Commit

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

Simon Wunderlich says:

====================
Here are three batman-adv bugfix patches:

 - Fix RCU usage for neighbor list, by Sven Eckelmann

 - Fix BATADV_DBG_ALL loglevel to include TP Meter messages, by Sven Eckelmann

 - Fix possible splat when disabling an interface, by Linus Luessing
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 29, 2016
2 parents e934f68 + 9799c50 commit ad60133
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion net/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface,
batadv_softif_destroy_sysfs(hard_iface->soft_iface);
}

hard_iface->soft_iface = NULL;
batadv_hardif_put(hard_iface);

out:
Expand Down
2 changes: 1 addition & 1 deletion net/batman-adv/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ enum batadv_dbg_level {
BATADV_DBG_NC = BIT(5),
BATADV_DBG_MCAST = BIT(6),
BATADV_DBG_TP_METER = BIT(7),
BATADV_DBG_ALL = 127,
BATADV_DBG_ALL = 255,
};

#ifdef CONFIG_BATMAN_ADV_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion net/batman-adv/originator.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ batadv_hardif_neigh_create(struct batadv_hard_iface *hard_iface,
if (bat_priv->algo_ops->neigh.hardif_init)
bat_priv->algo_ops->neigh.hardif_init(hardif_neigh);

hlist_add_head(&hardif_neigh->list, &hard_iface->neigh_list);
hlist_add_head_rcu(&hardif_neigh->list, &hard_iface->neigh_list);

out:
spin_unlock_bh(&hard_iface->neigh_list_lock);
Expand Down

0 comments on commit ad60133

Please sign in to comment.