datapath: Avoid null deref when GSO is for verifying header integrity only.
[cascardo/ovs.git] / datapath / datapath.c
index 4aeae5d..7b213d0 100644 (file)
@@ -413,6 +413,8 @@ static int queue_gso_packets(struct net *net, int dp_ifindex,
        segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM);
        if (IS_ERR(segs))
                return PTR_ERR(segs);
+       if (!segs)
+               return queue_userspace_packet(net, dp_ifindex, skb, upcall_info);
 
        /* Queue all of the segments. */
        skb = segs;