OSDN Git Service

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)
commit8def0be82dd1507bcdc5fd35d12e35ace1e39dff
tree4ac45f4e1d2e822e867c2243133088343f5f01c6
parenteaac2c876ecce420d24ff5d5b6d6a51390446798
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