mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
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>
This commit is contained in:
parent
6f501b173f
commit
6989f5122f
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user