summaryrefslogtreecommitdiff
path: root/net/batman-adv/debugfs.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-03-05 15:09:17 (GMT)
committerAntonio Quartulli <a@unstable.cc>2016-05-10 10:28:29 (GMT)
commit4fe56e60ac1be4d103f64743d0a36fd31a70657c (patch)
tree655b231a0971e2b1a39404af5e37b9b9577e12e3 /net/batman-adv/debugfs.h
parent273534468f050744b32054f84a1e20ee6b5bd329 (diff)
downloadlinux-4fe56e60ac1be4d103f64743d0a36fd31a70657c.tar.xz
batman-adv: Check hard_iface refcnt when receiving skb
The receive function may start processing an incoming packet while the hard_iface is shut down in a different context. All called functions called with the batadv_hard_iface object belonging to the incoming interface would have to check whether the reference counter is still > 0. This is rather error-prone because this check can be forgotten easily. Instead check the reference counter when receiving the object to make sure that all called functions have a valid reference. 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/debugfs.h')
0 files changed, 0 insertions, 0 deletions