mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-05 18:59:58 +00:00
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>
This commit is contained in:
parent
c0efd52b8b
commit
73344863e4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue