diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2010-01-27 16:30:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-28 14:55:53 +0100 |
commit | ac26d7d6aca9621f75f6954c159d2727c9c9cbd0 (patch) | |
tree | 289fa801414a3497031c1294cac9452fc340d557 /drivers | |
parent | drivers/net: ks8851_mll ethernet network driver (diff) | |
download | linux-ac26d7d6aca9621f75f6954c159d2727c9c9cbd0.tar.xz linux-ac26d7d6aca9621f75f6954c159d2727c9c9cbd0.zip |
igbvf: fix issue w/ mapped_as_page being left set after unmap
This change fixes an issue in igbvf with mapped_as_page being left set
after a page is unmapped which results in buffers which are mapped via map
single being unmapped as page.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/igbvf/netdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 297a5ddd77f0..2aa71a766c35 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -2117,6 +2117,7 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter, /* set time_stamp *before* dma to help avoid a possible race */ buffer_info->time_stamp = jiffies; buffer_info->next_to_watch = i; + buffer_info->mapped_as_page = false; buffer_info->dma = pci_map_single(pdev, skb->data, len, PCI_DMA_TODEVICE); if (pci_dma_mapping_error(pdev, buffer_info->dma)) |