batman-adv: Remove orig_node reference handling from send_skb_unicast
authorSven Eckelmann <sven@narfation.org>
Mon, 27 Jun 2016 06:15:42 +0000 (08:15 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:33 +0000 (07:54 +0200)
commitf19dc7770f5d55274ef9821392199daca03469a9
tree3057a28549d424cf4f455634547bc2db48ad7ae4
parent86452f81d200d4d6ad489ef84311030eff84dd84
batman-adv: Remove orig_node reference handling from send_skb_unicast

The function batadv_send_skb_unicast is not acquiring a reference for an
orig_node nor removing it from any datastructure. It still reduces the
reference counter for an object which is still in the hands of the caller.

This is confusing and can lead in the future to problems in the reference
handling of the caller function.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/send.c
net/batman-adv/soft-interface.c