From: Sascha Hauer Date: Wed, 28 Jan 2009 23:03:06 +0000 (+0000) Subject: fec: do not use memcpy on physical addresses X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6989f5122f84046ba286efe8ce8be2fec42a1b7c;p=linux-beck.git fec: do not use memcpy on physical addresses Signed-off-by: Sascha Hauer Acked-by: Greg Ungerer Signed-off-by: David S. Miller --- 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) if (bdp->cbd_bufaddr & 0x3) { unsigned int index; index = bdp - fep->tx_bd_base; - memcpy(fep->tx_bounce[index], (void *) bdp->cbd_bufaddr, bdp->cbd_datlen); + memcpy(fep->tx_bounce[index], (void *)skb->data, skb->len); bdp->cbd_bufaddr = __pa(fep->tx_bounce[index]); }