openvswitch: Check currect return value from skb_gso_segment()
authorPravin B Shelar <pshelar@nicira.com>
Fri, 20 Jul 2012 21:46:29 +0000 (14:46 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 20 Jul 2012 21:46:29 +0000 (14:46 -0700)
Fix return check typo.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c

index b512cb8cdc87884b9b9b6d588db89c781c9c3b68..670e6302066706c37019ff89289064ae3b6d7867 100644 (file)
@@ -269,8 +269,8 @@ static int queue_gso_packets(int dp_ifindex, struct sk_buff *skb,
        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;