From: Koki Sanagi Date: Tue, 27 Apr 2010 01:01:39 +0000 (+0000) Subject: igbvf: double increment nr_frags X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ec857fd40da41d7c50d9a97e07e364c93b8b8e05;p=openwrt%2Fstaging%2Fblogic.git igbvf: 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/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index cc2309027e6a..9ac3f9428195 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -289,7 +289,7 @@ static bool igbvf_clean_rx_irq(struct igbvf_adapter *adapter, 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);