提交 744c6b29 编写于 作者: R Riccardo Ghetta 提交者: David S. Miller

sis190: fix for x86_64 (bug 11509)

Corrected dma sync handling on small packets. Should fix
http://bugzilla.kernel.org/show_bug.cgi?id=11509
Note:
While this bug was reported only on x86_64, it could have affected
any architecture.
Signed-off-by: NRiccardo Ghetta <birrachiara@tin.it>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 365da872
......@@ -539,7 +539,7 @@ static bool sis190_try_rx_copy(struct sis190_private *tp,
if (!skb)
goto out;
pci_dma_sync_single_for_device(tp->pci_dev, addr, pkt_size,
pci_dma_sync_single_for_cpu(tp->pci_dev, addr, tp->rx_buf_sz,
PCI_DMA_FROMDEVICE);
skb_reserve(skb, 2);
skb_copy_to_linear_data(skb, sk_buff[0]->data, pkt_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册