]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: frag: free unfragmentable packet
authorSven Eckelmann <sven@narfation.org>
Fri, 3 Jul 2026 18:28:31 +0000 (20:28 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 6 Jul 2026 05:18:59 +0000 (07:18 +0200)
commit6b628425aed49a1c7a4ffc997583840fc582d32b
tree50dd2beb26e80bf4557ebb5ab48c4e49ac85db7e
parent7a581d9aaba8c82bd6177fa36b2588eea77f6e2b
batman-adv: frag: free unfragmentable packet

The caller of batadv_frag_send_packet() assume that the skb provided to the
function are always consumed. But the pre-check for an empty payload or the
zero fragment size returned an error without any further actions.

A failed pre-check must use the same error handling code as the rest of the
function.

Cc: stable@vger.kernel.org
Fixes: ee75ed88879a ("batman-adv: Fragment and send skbs larger than mtu")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/fragmentation.c