]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Staging: batman-adv: kfree_skb() in interface_tx() in error case
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Fri, 7 May 2010 19:47:26 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 20:42:40 +0000 (13:42 -0700)
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>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/soft-interface.c

index 14b5ccaeaca0450b97a05a5d1eef723053199104..c3b52885b0860a6f1e6010249f53277baecb8c93 100644 (file)
@@ -275,6 +275,7 @@ unlock:
        spin_unlock_irqrestore(&orig_hash_lock, flags);
 dropped:
        priv->stats.tx_dropped++;
+       kfree_skb(skb);
 end:
        return NETDEV_TX_OK;
 }