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)
commitf729dc70dafec281e524f51ae496a72ea4f8e319
treeca910c0459ac63af7f3f047e01b175b8052407ed
parent1dd34b5ad8aebaff17b625fc0126e18243008a3f
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