diff options
| author | Sven Eckelmann <[email protected]> | 2016-03-05 16:09:17 +0100 |
|---|---|---|
| committer | Antonio Quartulli <[email protected]> | 2016-05-10 18:28:29 +0800 |
| commit | 4fe56e60ac1be4d103f64743d0a36fd31a70657c (patch) | |
| tree | 655b231a0971e2b1a39404af5e37b9b9577e12e3 /scripts/gdb/linux | |
| parent | 273534468f050744b32054f84a1e20ee6b5bd329 (diff) | |
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 <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions