Skip to contentSkip to conversation

igb: double increment nr_frags

PATCH Superseded Koki Sanagi 2 participants 2 messages Apr 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 igb: double increment nr_frags

There is no need to increment nr_frags becasue skb_fill_page_desc increments it.

---
 drivers/net/igb/igb_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +1 -1
index 78cc742..8bde6c3 100644
@@ -5254,7 +5254,7 @@ static bool igb_clean_rx_irq_adv(struct igb_q_vector *q_vector,
 				       PAGE_SIZE / 2, PCI_DMA_FROMDEVICE);
 			buffer_info->page_dma = 0;
 
-			skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags++,
+			skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags,
 						buffer_info->page,
 						buffer_info->page_offset,
 						length);
maintainer
#1 lore raw

Your email client corrupted your patch by applying text formatting to it.

Please disable all text formatting in your email client and resend your changes.

You can read Documentation/email-clients.txt for help in this area.