From a24a789cc6b0a736759bd221b0a32f9a240c2f6e Mon Sep 17 00:00:00 2001 From: Thomas Bogendoerfer Date: Sun, 13 Jan 2008 00:08:47 +0100 Subject: SGISEEQ: fix oops when doing ifconfig down; ifconfig up When doing init_ring checking whether a new skb needs to be allocated was wrong. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Jeff Garzik --- drivers/net/sgiseeq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index c69bb8ba8b6..78994ede0cb 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c @@ -193,7 +193,7 @@ static int seeq_init_ring(struct net_device *dev) /* And now the rx ring. */ for (i = 0; i < SEEQ_RX_BUFFERS; i++) { - if (!sp->rx_desc[i].rdma.pbuf) { + if (!sp->rx_desc[i].skb) { dma_addr_t dma_addr; struct sk_buff *skb = netdev_alloc_skb(dev, PKT_BUF_SZ); -- cgit v1.2.3