aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/via-velocity.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index 1e6b395c555f..04d3836bfa5d 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -1470,7 +1470,8 @@ static int velocity_alloc_rx_buf(struct velocity_info *vptr, int idx)
1470 * Do the gymnastics to get the buffer head for data at 1470 * Do the gymnastics to get the buffer head for data at
1471 * 64byte alignment. 1471 * 64byte alignment.
1472 */ 1472 */
1473 skb_reserve(rd_info->skb, (unsigned long) rd_info->skb->data & 63); 1473 skb_reserve(rd_info->skb,
1474 64 - ((unsigned long) rd_info->skb->data & 63));
1474 rd_info->skb_dma = pci_map_single(vptr->pdev, rd_info->skb->data, 1475 rd_info->skb_dma = pci_map_single(vptr->pdev, rd_info->skb->data,
1475 vptr->rx.buf_sz, PCI_DMA_FROMDEVICE); 1476 vptr->rx.buf_sz, PCI_DMA_FROMDEVICE);
1476 1477