Skip to contentSkip to conversation

SGISEEQ: fix oops when doing ifconfig down; ifconfig up

PATCH Applied Thomas Bogendoerfer 2 participants 2 messages Jan 12, 2008 – Jan 18, 2008

Subsystems (3)
lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH 1/1 SGISEEQ: fix oops when doing ifconfig down; ifconfig up

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

---

This is a bug fix for the 2.6.25 driver.

 drivers/net/sgiseeq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/sgiseeq.c +1 -1
index c69bb8b..78994ed 100644
@@ -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);
 
Applied
#1 lore raw
Quoted 16 lines · Thomas Bogendoerfer

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

---

This is a bug fix for the 2.6.25 driver.

 drivers/net/sgiseeq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/sgiseeq.c +0 -0
index c69bb8b..78994ed 100644

drivers/net/sgiseeq.c static int seeq_init_ring(struct net_device *dev) · line 198

Quoted 7 lines
drivers/net/sgiseeq.c +1 -1
@@ -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);

applied