forked from Minki/linux
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>
This commit is contained in:
parent
7fe99e2d43
commit
92e5dfc34c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user