summaryrefslogtreecommitdiff
path: root/net/batman-adv/originator.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-04-11 14:06:40 +0300
committerAntonio Quartulli <a@unstable.cc>2016-05-10 13:28:29 +0300
commit17a8691502c9d2d792cfea7253b17382279ffb3e (patch)
tree6b2f476a17ff8d70d72caf5f6fbedc5b4bf7406d /net/batman-adv/originator.h
parentc3ba37a778ecab4f8ddb117a2ceff3e13184a7db (diff)
downloadlinux-17a8691502c9d2d792cfea7253b17382279ffb3e.tar.xz
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/originator.h')
0 files changed, 0 insertions, 0 deletions