mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
r8169: balance pci_map / pci_unmap pair
The leak hurts with swiotlb and jumbo frames. Fix http://bugzilla.kernel.org/show_bug.cgi?id=9468. Heavily hinted by Ilpo Järvinen <[email protected]>. Signed-off-by: Francois Romieu <[email protected]> Tested-by: Alistair John Strachan <[email protected]> Tested-by: Timothy J Fontaine <[email protected]> Cc: Edward Hsu <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
0623807a18
commit
a866bbf6aa
1 changed files with 1 additions and 1 deletions
|
|
@ -2792,7 +2792,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev,
|
|||
pkt_size, PCI_DMA_FROMDEVICE);
|
||||
rtl8169_mark_to_asic(desc, tp->rx_buf_sz);
|
||||
} else {
|
||||
pci_unmap_single(pdev, addr, pkt_size,
|
||||
pci_unmap_single(pdev, addr, tp->rx_buf_sz,
|
||||
PCI_DMA_FROMDEVICE);
|
||||
tp->Rx_skbuff[entry] = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue