Commit 2e907999 authored by David S. Miller's avatar David S. Miller

drivers/net/ppp_generic.c: Fix skb_put len arg when copying unaligned skb.

parent 5c424658
...@@ -1402,7 +1402,7 @@ ppp_receive_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch) ...@@ -1402,7 +1402,7 @@ ppp_receive_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
goto err; goto err;
} }
skb_reserve(new_skb, 2); skb_reserve(new_skb, 2);
memcpy(skb_put(new_skb, len), skb->data, skb->len); memcpy(skb_put(new_skb, skb->len), skb->data, skb->len);
kfree_skb(skb); kfree_skb(skb);
skb = new_skb; skb = new_skb;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment