summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r--net/ipv4/ipip.c3
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,
275 const struct iphdr *tiph = &tunnel->parms.iph; 275 const struct iphdr *tiph = &tunnel->parms.iph;
276 u8 ipproto; 276 u8 ipproto;
277 277
278 if (!pskb_inet_may_pull(skb))
279 goto tx_error;
280
278 switch (skb->protocol) { 281 switch (skb->protocol) {
279 case htons(ETH_P_IP): 282 case htons(ETH_P_IP):
280 ipproto = IPPROTO_IPIP; 283 ipproto = IPPROTO_IPIP;