]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: move hardif refcount inc to batadv_neigh_node_new()
authorMarek Lindner <mareklindner@neomailbox.ch>
Sat, 25 Jul 2015 20:37:15 +0000 (04:37 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 27 Aug 2015 18:15:30 +0000 (20:15 +0200)
commita2cec4681b7ad8a5499ab98981b0cadfcb2fd1d4
treeca910c0459ac63af7f3f047e01b175b8052407ed
parent5f792c37332247f1a3a7f6b80a032bb5df9e6cb2
batman-adv: move hardif refcount inc to batadv_neigh_node_new()

The batadv_neigh_node cleanup function 'batadv_neigh_node_free_rcu()'
takes care of reducing the hardif refcounter, hence it's only logical
to assume the creating function of that same object
'batadv_neigh_node_new()' takes care of increasing the same refcounter.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Acked-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/originator.c