summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2012-07-20 14:46:29 -0700
committerZefan Li <lizefan@huawei.com>2015-06-19 11:40:33 +0800
commit4e237a3ed2af86578d22ec17a93738f5fc8a6076 (patch)
tree8ae9b739e24bb96790f26ec993616cad085bce1f
parente661bb1c6d22a28c9038f4c2888e1e3b52f5b247 (diff)
openvswitch: Check currect return value from skb_gso_segment()
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>
-rw-r--r--net/openvswitch/datapath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index e66341ec455c..1efa548ebb9d 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -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;