summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_v_ogm.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-04-11 13:06:40 +0200
committerAntonio Quartulli <a@unstable.cc>2016-05-10 18:28:29 +0800
commit17a8691502c9d2d792cfea7253b17382279ffb3e (patch)
tree6b2f476a17ff8d70d72caf5f6fbedc5b4bf7406d /net/batman-adv/bat_v_ogm.h
parentc3ba37a778ecab4f8ddb117a2ceff3e13184a7db (diff)
downloadtalos-op-linux-17a8691502c9d2d792cfea7253b17382279ffb3e.tar.gz
talos-op-linux-17a8691502c9d2d792cfea7253b17382279ffb3e.zip
batman-adv: Use kref_get for hard_iface subfunctions
The callers of the functions using batadv_hard_iface objects already make sure that they hold a valid reference. The subfunctions don't have to check whether the reference counter is > 0 because this was checked by the callers. 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>
Diffstat (limited to 'net/batman-adv/bat_v_ogm.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud