From: Thomas Bogendoerfer Date: Sat, 12 Jan 2008 23:08:47 +0000 (+0100) Subject: SGISEEQ: fix oops when doing ifconfig down; ifconfig up X-Git-Tag: v2.6.25-rc1~1162^2~278 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a24a789cc6b0a736759bd221b0a32f9a240c2f6e;p=linux-2.6-omap-h63xx.git 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 --- 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);