Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1105fa0e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ppp: pppopns: Always linearize in the input path"

parents 4fbddf52 410809ad
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -75,7 +75,10 @@ static int pppopns_recv_core(struct sock *sk_raw, struct sk_buff *skb)
	__u32 now = jiffies;
	struct header *hdr;

	/* Skip transport header */
	if (skb_linearize(skb))
		goto drop;

	/* Skip network header */
	skb_pull(skb, skb_transport_header(skb) - skb->data);

	/* Drop the packet if GRE header is missing. */