Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa913403 authored by Koki Sanagi's avatar Koki Sanagi Committed by David S. Miller
Browse files

igb: double increment nr_frags



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

Signed-off-by: default avatarKoki Sanagi <sanagi.koki@jp.fujitsu.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b53ff2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);