diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-05-29 13:19:22 +0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-05-29 13:19:22 +0400 |
commit | a35197a8be891072b3654dc7a2285573150dedee (patch) | |
tree | f3829335b8a0cd40e2cdb94d7fefb54bf67977df /drivers/net/gianfar.c | |
parent | 6daad5c6c586bf07528ae5b39e801b204468f907 (diff) | |
parent | 67a433ce278b98f47272726a22537fab7fd99de9 (diff) | |
download | linux-a35197a8be891072b3654dc7a2285573150dedee.tar.xz |
Merge branch 'for-rmk' of git://gitorious.org/linux-gemini/mainline
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index b2c49679bba7..a0519184e54e 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -1885,8 +1885,17 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit) if (unlikely(!newskb)) newskb = skb; - else if (skb) + else if (skb) { + /* + * We need to reset ->data to what it + * was before gfar_new_skb() re-aligned + * it to an RXBUF_ALIGNMENT boundary + * before we put the skb back on the + * recycle list. + */ + skb->data = skb->head + NET_SKB_PAD; __skb_queue_head(&priv->rx_recycle, skb); + } } else { /* Increment the number of packets */ dev->stats.rx_packets++; |