Skip to content

Commit

Permalink
openvswitch: Check currect return value from skb_gso_segment()
Browse files Browse the repository at this point in the history
Fix return check typo.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
  • Loading branch information
Pravin B Shelar authored and Jesse Gross committed Jul 20, 2012
1 parent 7fe99e2 commit 92e5dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/openvswitch/datapath.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 92e5dfc

Please sign in to comment.