Author: simon Date: 2010-04-12 21:06:37 +0200 (Mon, 12 Apr 2010) New Revision: 1633
Modified: trunk/batman-adv-kernelland/soft-interface.c Log: batman-adv: kfree_skb() in interface_tx() in error case
As we always return that the we consumed the skb, we should also free the skb in the case of an error.
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
Modified: trunk/batman-adv-kernelland/soft-interface.c =================================================================== --- trunk/batman-adv-kernelland/soft-interface.c 2010-04-12 19:02:42 UTC (rev 1632) +++ trunk/batman-adv-kernelland/soft-interface.c 2010-04-12 19:06:37 UTC (rev 1633) @@ -288,6 +288,7 @@ spin_unlock_irqrestore(&orig_hash_lock, flags); dropped: priv->stats.tx_dropped++; + kfree_skb(skb); end: return NETDEV_TX_OK; }