summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-10-13 11:23:34 +0000
committerSven Eckelmann <sven@narfation.org>2026-10-30 10:11:25 +0100
commit522e4aece2e96cacbb8a6ae1eec0d4c0dd6f4fed (patch)
treee5ea83229fcd4dc5ce09b684808101b9ef13a96c /scripts/const_structs.checkpatch
parent4eb19a389d74f06901b4cd6f24b996b2e84eaefc (diff)
batman-adv: fix skb leak when hard_iface is being released
batadv_batman_skb_recv() owns the skb it is given. When the hard_iface refcount already dropped to zero, the function jumped to err_out, which only returned NET_RX_DROP and skipped the kfree_skb() under err_free. To avoid a leak, free the skb before returning in this case. Cc: stable@vger.kernel.org Fixes: 4fe56e60ac1b ("batman-adv: Check hard_iface refcnt when receiving skb") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions