diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-03-05 16:09:17 +0100 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-10 18:28:29 +0800 |
commit | 4fe56e60ac1be4d103f64743d0a36fd31a70657c (patch) | |
tree | 655b231a0971e2b1a39404af5e37b9b9577e12e3 /sound | |
parent | 273534468f050744b32054f84a1e20ee6b5bd329 (diff) | |
download | lwn-4fe56e60ac1be4d103f64743d0a36fd31a70657c.tar.gz lwn-4fe56e60ac1be4d103f64743d0a36fd31a70657c.zip |
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 'sound')
0 files changed, 0 insertions, 0 deletions