Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31945
b: refs/heads/master
c: 8dc22d2
h: refs/heads/master
i:
  31943: 07bb563
v: v3
  • Loading branch information
Ralf Baechle authored and David S. Miller committed Jul 4, 2006
1 parent cea524b commit 630bc27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 518d1c9679f644811adaa22d853f43a83fbdae84
refs/heads/master: 8dc22d2b642f8a6f14ef8878777a05311e5d1d7e
5 changes: 4 additions & 1 deletion trunk/net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static int rose_rebuild_header(struct sk_buff *skb)
struct net_device_stats *stats = netdev_priv(dev);
unsigned char *bp = (unsigned char *)skb->data;
struct sk_buff *skbn;
unsigned int len;

#ifdef CONFIG_INET
if (arp_find(bp + 7, skb)) {
Expand All @@ -75,14 +76,16 @@ static int rose_rebuild_header(struct sk_buff *skb)

kfree_skb(skb);

len = skbn->len;

if (!rose_route_frame(skbn, NULL)) {
kfree_skb(skbn);
stats->tx_errors++;
return 1;
}

stats->tx_packets++;
stats->tx_bytes += skbn->len;
stats->tx_bytes += len;
#endif
return 1;
}
Expand Down

0 comments on commit 630bc27

Please sign in to comment.