[2.6.24 patch] fix netx-eth.c compilation

Previous thread: Top 10 kernel oopses for the week ending January 5th, 2008 by Arjan van de Ven on Saturday, January 5, 2008 - 5:06 pm. (22 messages)

Next thread: [PATCH] system timer: fix crash in <100Hz system timer by David Fries on Saturday, January 5, 2008 - 6:16 pm. (5 messages)
To: Jeff Garzik <jeff@...>, David S. Miller <davem@...>
Cc: <linux-kernel@...>, <netdev@...>
Date: Saturday, January 5, 2008 - 5:46 pm

This was missed when commit e2ac455a18806b31c2d0da0a51d8740af5010b7a
fixed the compile errors in drivers/net/netx-eth.c caused by
commit 09f75cd7bf13720738e6a196cc0107ce9a5bd5a0.

Signed-off-by: Adrian Bunk <adrian.bunk@movial.fi>

---
15e5efb728c61333ca10648334185efba86c4815
diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c
index 5267e03..78d34af 100644
--- a/drivers/net/netx-eth.c
+++ b/drivers/net/netx-eth.c
@@ -169,8 +169,8 @@ static void netx_eth_receive(struct net_device *ndev)
ndev->last_rx = jiffies;
skb->protocol = eth_type_trans(skb, ndev);
netif_rx(skb);
- dev->stats.rx_packets++;
- dev->stats.rx_bytes += len;
+ ndev->stats.rx_packets++;
+ ndev->stats.rx_bytes += len;
}

static irqreturn_t

--

To: <adrian.bunk@...>
Cc: <jeff@...>, <linux-kernel@...>, <netdev@...>
Date: Sunday, January 6, 2008 - 3:55 am

From: Adrian Bunk <adrian.bunk@movial.fi>

Applied, thanks Adrian.
--

Previous thread: Top 10 kernel oopses for the week ending January 5th, 2008 by Arjan van de Ven on Saturday, January 5, 2008 - 5:06 pm. (22 messages)

Next thread: [PATCH] system timer: fix crash in <100Hz system timer by David Fries on Saturday, January 5, 2008 - 6:16 pm. (5 messages)