]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ad29c718fcc729223671b7650ca5f33988989fc
tree3057a28549d424cf4f455634547bc2db48ad7ae4
parentbefb0549bdbc92d9abaa6f1f8b367b5badedcb31
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