diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 6791aac06ea9..39a5e7a9a77f 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -2305,7 +2305,8 @@ struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb, | |||
2305 | /* Packet is from an untrusted source, reset gso_segs. */ | 2305 | /* Packet is from an untrusted source, reset gso_segs. */ |
2306 | int type = skb_shinfo(skb)->gso_type; | 2306 | int type = skb_shinfo(skb)->gso_type; |
2307 | 2307 | ||
2308 | if (unlikely(type & ~(SKB_GSO_UDP | SKB_GSO_DODGY) || | 2308 | if (unlikely(type & ~(SKB_GSO_UDP | SKB_GSO_DODGY | |
2309 | SKB_GSO_GRE) || | ||
2309 | !(type & (SKB_GSO_UDP)))) | 2310 | !(type & (SKB_GSO_UDP)))) |
2310 | goto out; | 2311 | goto out; |
2311 | 2312 | ||