aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 9684632f15b8..e1efa1d7df4e 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -708,7 +708,7 @@ static bool ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector,
708 prefetch(skb->data - NET_IP_ALIGN); 708 prefetch(skb->data - NET_IP_ALIGN);
709 rx_buffer_info->skb = NULL; 709 rx_buffer_info->skb = NULL;
710 710
711 if (len && !skb_shinfo(skb)->nr_frags) { 711 if (rx_buffer_info->dma) {
712 pci_unmap_single(pdev, rx_buffer_info->dma, 712 pci_unmap_single(pdev, rx_buffer_info->dma,
713 rx_ring->rx_buf_len, 713 rx_ring->rx_buf_len,
714 PCI_DMA_FROMDEVICE); 714 PCI_DMA_FROMDEVICE);