summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJunwei Zhang <linggao.zjw@alibaba-inc.com>2014-10-22 19:29:03 +0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-10-30 15:04:39 +0300
commit4d2fcfbcf8141cdf70245a0c0612b8076f4b7e32 (patch)
treed66c6b053c53a267f5af34b2faa7f2218ac5eda5 /drivers
parentbc16e47f03a7dce9ad68029b21519265c334eb12 (diff)
downloadlinux-4d2fcfbcf8141cdf70245a0c0612b8076f4b7e32.tar.xz
ixgbe: need not repeat init skb with NULL
Signed-off-by: Martin Zhang <martinbj2008@gmail.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index fec5212d4337..d2df4e3d1032 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),