mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
Merge branch 'origin'
This commit is contained in:
commit
fc3fba60f5
@ -1610,6 +1610,8 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
|
||||
}
|
||||
else if (!pskb_may_pull(skb, skb->len))
|
||||
goto err;
|
||||
else
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
|
||||
len = slhc_uncompress(ppp->vj, skb->data + 2, skb->len - 2);
|
||||
if (len <= 0) {
|
||||
@ -1690,6 +1692,7 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
|
||||
kfree_skb(skb);
|
||||
} else {
|
||||
skb_pull(skb, 2); /* chop off protocol */
|
||||
skb_postpull_rcsum(skb, skb->data - 2, 2);
|
||||
skb->dev = ppp->dev;
|
||||
skb->protocol = htons(npindex_to_ethertype[npi]);
|
||||
skb->mac.raw = skb->data;
|
||||
|
Loading…
Reference in New Issue
Block a user