summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-08-22 16:12:55 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 01:50:56 +0200
commit73344863e426a3c56c7f3ac80fc6f1d4cb10460b (patch)
treec2476555efdb349dbe83da4335603ac2b4afc9d8 /drivers/net
parentpasemi_mac: Enable L2 caching of packet headers (diff)
downloadlinux-73344863e426a3c56c7f3ac80fc6f1d4cb10460b.tar.xz
linux-73344863e426a3c56c7f3ac80fc6f1d4cb10460b.zip
pasemi_mac: Fix memcpy amount for short receives
Fix up memcpy for short receives. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/pasemi_mac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
index 46d5c0eef784..0d80b9d48c26 100644
--- a/drivers/net/pasemi_mac.c
+++ b/drivers/net/pasemi_mac.c
@@ -506,9 +506,7 @@ static int pasemi_mac_clean_rx(struct pasemi_mac *mac, int limit)
netdev_alloc_skb(mac->netdev, len + NET_IP_ALIGN);
if (new_skb) {
skb_reserve(new_skb, NET_IP_ALIGN);
- memcpy(new_skb->data - NET_IP_ALIGN,
- skb->data - NET_IP_ALIGN,
- len + NET_IP_ALIGN);
+ memcpy(new_skb->data, skb->data, len);
/* save the skb in buffer_info as good */
skb = new_skb;
}