Browse Source

Phonet: fix double free in GPRS outbound packet error path

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Rémi Denis-Courmont 16 years ago
parent
commit
a2bf453871
1 changed files with 0 additions and 1 deletions
  1. 0 1
      net/phonet/pep-gprs.c

+ 0 - 1
net/phonet/pep-gprs.c

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