Sven Eckelmann c3ba37a778 batman-adv: Use kref_get for batadv_gw_node_add
batadv_gw_node_add requires that the caller already has a valid reference
for orig_node. It is therefore not possible that it has an reference
counter of 0 and was still given to this function

The kref_get function instead WARNs (with debug information) when the
reference counter would still be 0. This makes a bug in batman-adv better
visible because kref_get_unless_zero would have ignored this problem.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
2016-05-10 18:28:29 +08:00
..
2016-04-13 10:41:10 +02:00
2016-03-10 20:54:09 -05:00
2016-03-17 21:05:01 -04:00
2016-04-21 13:59:08 -04:00
2016-03-09 16:36:15 -05:00
2015-10-23 03:05:19 -07:00
2016-04-14 16:23:40 -04:00
2016-05-08 23:46:14 -04:00
2016-04-27 22:48:23 -04:00
2016-05-08 23:46:14 -04:00
2016-05-08 23:46:14 -04:00