summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-25 01:20:01 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-25 01:20:01 +0000
commit3797ba0b62debb71af4606910acacc9896a9ae3b (patch)
tree414eea76253c7871bfdf3bd9d1817771eb40917c /net/core
parent2b6c0c580795a4404f72d2a794214dd9e080709d (diff)
Merge with Linux 2.4.0-test2.
Diffstat (limited to 'net/core')
-rw-r--r--net/core/profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/profile.c b/net/core/profile.c
index 0408447cb..a3ff36417 100644
--- a/net/core/profile.c
+++ b/net/core/profile.c
@@ -145,11 +145,12 @@ int whitehole_count;
static int whitehole_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats;
- dev_kfree_skb(skb);
+
stats = (struct net_device_stats *)dev->priv;
stats->tx_packets++;
stats->tx_bytes+=skb->len;
+ dev_kfree_skb(skb);
return 0;
}