Phonet: fix double free in GPRS outbound packet error path
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 11 Feb 2009 01:14:31 +0000 (17:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Feb 2009 01:14:31 +0000 (17:14 -0800)
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep-gprs.c

index 6a91a32a80c135277fdae3f0b67572d5df2f92b6..4aa888584d20991893272cd84688f4950c0c40e6 100644 (file)
@@ -207,7 +207,6 @@ static int gprs_xmit(struct sk_buff *skb, struct net_device *dev)
                                dev->name, err);
                dev->stats.tx_aborted_errors++;
                dev->stats.tx_errors++;
-               dev_kfree_skb(skb);
        } else {
                dev->stats.tx_packets++;
                dev->stats.tx_bytes += len;