batman-adv: Decrease hardif refcnt on fragmentation send error
authorSven Eckelmann <sven@narfation.org>
Tue, 27 Dec 2016 07:51:17 +0000 (08:51 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Wed, 4 Jan 2017 07:22:04 +0000 (08:22 +0100)
commit4ea33ef0f9e95b69db9131d7afd98563713e81b0
treef3d2e7bf47555b5c036ff54cc1b9fbd7445c36b3
parent7ce7d89f48834cefece7804d38fc5d85382edf77
batman-adv: Decrease hardif refcnt on fragmentation send error

An error before the hardif is found has to free the skb. But every error
after that has to free the skb + put the hard interface.

Fixes: 8def0be82dd1 ("batman-adv: Consume skb in batadv_frag_send_packet")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/fragmentation.c