From: Junwei Zhang Date: Wed, 22 Oct 2014 15:29:03 +0000 (+0000) Subject: ixgbe: need not repeat init skb with NULL X-Git-Tag: v4.9.8~5423^2~15^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d2fcfbcf8141cdf70245a0c0612b8076f4b7e32;p=platform%2Fkernel%2Flinux-rpi3.git ixgbe: need not repeat init skb with NULL Signed-off-by: Martin Zhang Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index fec5212..d2df4e3 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -4321,8 +4321,8 @@ static void ixgbe_clean_rx_ring(struct ixgbe_ring *rx_ring) IXGBE_CB(skb)->page_released = false; } dev_kfree_skb(skb); + rx_buffer->skb = NULL; } - rx_buffer->skb = NULL; if (rx_buffer->dma) dma_unmap_page(dev, rx_buffer->dma, ixgbe_rx_pg_size(rx_ring),