]> git.hungrycats.org Git - linux/commitdiff
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)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:33 +0000 (11:40 +0800)
commit 92e5dfc34cf39c20ae1087bd5e676238b5d0dfac upstream.

Fix return check typo.

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

index e66341ec455c3d7c588680bd829e044b7d7752ce..1efa548ebb9d950701cd673203449245ed91f936 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;