diff options
Diffstat (limited to 'net/ipv4/ipip.c')
| -rw-r--r-- | net/ipv4/ipip.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 43adfc1641ba..2f01cf6fa0de 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -275,6 +275,9 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb,  	const struct iphdr  *tiph = &tunnel->parms.iph;  	u8 ipproto; +	if (!pskb_inet_may_pull(skb)) +		goto tx_error; +  	switch (skb->protocol) {  	case htons(ETH_P_IP):  		ipproto = IPPROTO_IPIP;  | 
