|
@@ -32,6 +32,9 @@ static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq,
|
|
static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb,
|
|
static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb,
|
|
netdev_features_t features)
|
|
netdev_features_t features)
|
|
{
|
|
{
|
|
|
|
+ if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4))
|
|
|
|
+ return ERR_PTR(-EINVAL);
|
|
|
|
+
|
|
if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
|
|
if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
|
|
|