netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] SGISEEQ: fix oops when doing ifconfig down; ifconfig up
@ 2008-01-12 23:08 Thomas Bogendoerfer
  2008-01-18 20:01 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2008-01-12 23:08 UTC (permalink / raw)
  To: netdev, linux-mips; +Cc: ralf, jgarzik

When doing init_ring checking whether a new skb needs to be allocated
was wrong.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---

This is a bug fix for the 2.6.25 driver.

 drivers/net/sgiseeq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c
index c69bb8b..78994ed 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);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-18 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-12 23:08 [PATCH] SGISEEQ: fix oops when doing ifconfig down; ifconfig up Thomas Bogendoerfer
2008-01-18 20:01 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).