Commit 4e237a3e authored by Pravin B Shelar's avatar Pravin B Shelar Committed by Zefan Li

openvswitch: Check currect return value from skb_gso_segment()

commit 92e5dfc3 upstream.

Fix return check typo.
Signed-off-by: default avatarPravin B Shelar <pshelar@nicira.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent e661bb1c
...@@ -269,8 +269,8 @@ static int queue_gso_packets(int dp_ifindex, struct sk_buff *skb, ...@@ -269,8 +269,8 @@ static int queue_gso_packets(int dp_ifindex, struct sk_buff *skb,
int err; int err;
segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM); segs = skb_gso_segment(skb, NETIF_F_SG | NETIF_F_HW_CSUM);
if (IS_ERR(skb)) if (IS_ERR(segs))
return PTR_ERR(skb); return PTR_ERR(segs);
/* Queue all of the segments. */ /* Queue all of the segments. */
skb = segs; skb = segs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment