Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167003
b: refs/heads/master
c: 050f91d
h: refs/heads/master
i:
  167001: c1d6b2f
  166999: fde2f60
v: v3
  • Loading branch information
Thomas Chou authored and David S. Miller committed Oct 7, 2009
1 parent e1bb5ce commit 9eebaf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ee19a85bb428b8363699dff9e1c4041c107d46a
refs/heads/master: 050f91dcd9a45a14449dded5180f633692b588d2
4 changes: 4 additions & 0 deletions trunk/drivers/net/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ static int ethoc_rx(struct net_device *dev, int limit)
if (ethoc_update_rx_stats(priv, &bd) == 0) {
int size = bd.stat >> 16;
struct sk_buff *skb = netdev_alloc_skb(dev, size);

size -= 4; /* strip the CRC */
skb_reserve(skb, 2); /* align TCP/IP header */

if (likely(skb)) {
void *src = phys_to_virt(bd.addr);
memcpy_fromio(skb_put(skb, size), src, size);
Expand Down

0 comments on commit 9eebaf5

Please sign in to comment.