From: Koki Sanagi Date: Tue, 27 Apr 2010 01:01:19 +0000 (+0000) Subject: igb: double increment nr_frags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa913403fe76d463eff55ee9aa20605bfc7051a4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git igb: double increment nr_frags There is no need to increment nr_frags because skb_fill_page_desc increments it. Signed-off-by: Koki Sanagi Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index c19b1e0caecd..a14303a0ad7b 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -5248,7 +5248,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);