diff options
author | Riccardo Ghetta <birrachiara@tin.it> | 2009-06-07 15:47:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-08 03:09:49 -0400 |
commit | 744c6b2976778ac6944e580fc413842df85be84e (patch) | |
tree | 96b93f2a2eed6867070cc37271adb4e9eeeb7961 /drivers/net/sis190.c | |
parent | 365da8722d9df54efb8212bf82a87d816c522845 (diff) |
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: Riccardo Ghetta <birrachiara@tin.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sis190.c')
-rw-r--r-- | drivers/net/sis190.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 13b8ca41d571..9ea13c09f009 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c | |||
@@ -539,8 +539,8 @@ static bool sis190_try_rx_copy(struct sis190_private *tp, | |||
539 | if (!skb) | 539 | if (!skb) |
540 | goto out; | 540 | goto out; |
541 | 541 | ||
542 | pci_dma_sync_single_for_device(tp->pci_dev, addr, pkt_size, | 542 | pci_dma_sync_single_for_cpu(tp->pci_dev, addr, tp->rx_buf_sz, |
543 | PCI_DMA_FROMDEVICE); | 543 | PCI_DMA_FROMDEVICE); |
544 | skb_reserve(skb, 2); | 544 | skb_reserve(skb, 2); |
545 | skb_copy_to_linear_data(skb, sk_buff[0]->data, pkt_size); | 545 | skb_copy_to_linear_data(skb, sk_buff[0]->data, pkt_size); |
546 | *sk_buff = skb; | 546 | *sk_buff = skb; |