Sven Eckelmann 4fe56e60ac 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>
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
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