]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Consume skb in batadv_frag_send_packet
authorSven Eckelmann <sven@narfation.org>
Sun, 17 Jul 2016 19:04:02 +0000 (21:04 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:37 +0000 (11:11 +0100)
commit72a52e1c0c5f968d1cc14b58de62af6a16208e12
tree4ac45f4e1d2e822e867c2243133088343f5f01c6
parent39cbfa361842bb8e478815ba02131b2cd4768dd2
batman-adv: Consume skb in batadv_frag_send_packet

Sending functions in Linux consume the supplied skbuff. Doing the same in
batadv_frag_send_packet avoids the hack of returning -1 (-EPERM) to signal
the caller that he is responsible for cleaning up the skb.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/fragmentation.c