diff options
-rw-r--r-- | net/ipv6/udp_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c index 08e23b0bf302..e7359f9eaa8d 100644 --- a/net/ipv6/udp_offload.c +++ b/net/ipv6/udp_offload.c | |||
@@ -90,7 +90,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, | |||
90 | 90 | ||
91 | /* Check if there is enough headroom to insert fragment header. */ | 91 | /* Check if there is enough headroom to insert fragment header. */ |
92 | tnl_hlen = skb_tnl_header_len(skb); | 92 | tnl_hlen = skb_tnl_header_len(skb); |
93 | if (skb_headroom(skb) < (tnl_hlen + frag_hdr_sz)) { | 93 | if (skb->mac_header < (tnl_hlen + frag_hdr_sz)) { |
94 | if (gso_pskb_expand_head(skb, tnl_hlen + frag_hdr_sz)) | 94 | if (gso_pskb_expand_head(skb, tnl_hlen + frag_hdr_sz)) |
95 | goto out; | 95 | goto out; |
96 | } | 96 | } |