datapath: Check currect return value from skb_gso_segment()
authorPravin B Shelar <pshelar@nicira.com>
Tue, 12 Jun 2012 18:19:16 +0000 (11:19 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 12 Jun 2012 18:31:54 +0000 (11:31 -0700)
Fix return check typo.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #11933

datapath/datapath.c

index 605253d8556e92bccfd2bdd8d1d47c6934790a47..c2cb6b1575498d7de444e9d62152afa1f825bda1 100644 (file)
@@ -410,8 +410,8 @@ static int queue_gso_packets(struct net *net, int dp_ifindex,
        int err;
 
        segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM);
-       if (IS_ERR(skb))
-               return PTR_ERR(skb);
+       if (IS_ERR(segs))
+               return PTR_ERR(segs);
 
        /* Queue all of the segments. */
        skb = segs;