diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-07-20 17:46:29 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-07-20 17:46:29 -0400 |
commit | 92e5dfc34cf39c20ae1087bd5e676238b5d0dfac (patch) | |
tree | 36f43962fbe41d1f301653d163bba6b6018e7a19 /net/openvswitch/datapath.c | |
parent | 7fe99e2d434eafeac0c57b279a77e5de39212636 (diff) |
openvswitch: Check currect return value from skb_gso_segment()
Fix return check typo.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index b512cb8cdc87..670e63020667 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, | |||
269 | int err; | 269 | int err; |
270 | 270 | ||
271 | segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM); | 271 | segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM); |
272 | if (IS_ERR(skb)) | 272 | if (IS_ERR(segs)) |
273 | return PTR_ERR(skb); | 273 | return PTR_ERR(segs); |
274 | 274 | ||
275 | /* Queue all of the segments. */ | 275 | /* Queue all of the segments. */ |
276 | skb = segs; | 276 | skb = segs; |