aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-28 18:03:06 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-01 03:58:22 -0500
commit6989f5122f84046ba286efe8ce8be2fec42a1b7c (patch)
tree435e34fc15e363a6a76f5cba6d9c46fe13c746be /drivers/net/fec.c
parent6f501b173f2d69973497599f5358fb4c30922d67 (diff)
fec: do not use memcpy on physical addresses
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r--drivers/net/fec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index a44b4eef1808..1087c4da84a5 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -341,7 +341,7 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
341 if (bdp->cbd_bufaddr & 0x3) { 341 if (bdp->cbd_bufaddr & 0x3) {
342 unsigned int index; 342 unsigned int index;
343 index = bdp - fep->tx_bd_base; 343 index = bdp - fep->tx_bd_base;
344 memcpy(fep->tx_bounce[index], (void *) bdp->cbd_bufaddr, bdp->cbd_datlen); 344 memcpy(fep->tx_bounce[index], (void *)skb->data, skb->len);
345 bdp->cbd_bufaddr = __pa(fep->tx_bounce[index]); 345 bdp->cbd_bufaddr = __pa(fep->tx_bounce[index]);
346 } 346 }
347 347