aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r--drivers/net/8139cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 8f5d77923c7d..ae9bb7511d90 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -571,7 +571,7 @@ rx_status_loop:
571 571
572 if (netif_msg_rx_status(cp)) 572 if (netif_msg_rx_status(cp))
573 printk(KERN_DEBUG "%s: rx slot %d status 0x%x len %d\n", 573 printk(KERN_DEBUG "%s: rx slot %d status 0x%x len %d\n",
574 cp->dev->name, rx_tail, status, len); 574 dev->name, rx_tail, status, len);
575 575
576 buflen = cp->rx_buf_sz + RX_OFFSET; 576 buflen = cp->rx_buf_sz + RX_OFFSET;
577 new_skb = dev_alloc_skb (buflen); 577 new_skb = dev_alloc_skb (buflen);
@@ -581,7 +581,7 @@ rx_status_loop:
581 } 581 }
582 582
583 skb_reserve(new_skb, RX_OFFSET); 583 skb_reserve(new_skb, RX_OFFSET);
584 new_skb->dev = cp->dev; 584 new_skb->dev = dev;
585 585
586 pci_unmap_single(cp->pdev, mapping, 586 pci_unmap_single(cp->pdev, mapping,
587 buflen, PCI_DMA_FROMDEVICE); 587 buflen, PCI_DMA_FROMDEVICE);