Commit c5402fdc authored by David S. Miller's avatar David S. Miller

drivers/net/ppp_generic.c: Allocate right length in unaligned SKB fix.

parent bd039e05
......@@ -1396,7 +1396,7 @@ ppp_receive_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
if (skb_tailroom(skb) < 124)
len += 128;
new_skb = dev_alloc_skb(len);
new_skb = dev_alloc_skb(len + 16);
if (!new_skb) {
printk(KERN_ERR"PPP: no memory (bad aligned SKB)\n");
goto err;
......
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