]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: frag: fix primary_if leak on failed linearization
authorSven Eckelmann <sven@narfation.org>
Fri, 3 Jul 2026 19:04:03 +0000 (21:04 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 6 Jul 2026 05:18:59 +0000 (07:18 +0200)
commit353d2c1d5492e53ae34f490a84494124dc3d3531
treefa52a74ef7831d30a59a83bcf3a0ac18d7743a0e
parent6b628425aed49a1c7a4ffc997583840fc582d32b
batman-adv: frag: fix primary_if leak on failed linearization

If the skb has a frag_list, it must be linearized before it can be split
using skb_split(). But when this step failed, it must not only free the skb
but also take care of the reference to the already found primary_if.

Cc: stable@vger.kernel.org
Reported-by: Sashiko <sashiko-bot@kernel.org>
Fixes: a063f2fba3fa ("batman-adv: Don't skb_split skbuffs with frag_list")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/fragmentation.c