From 790897648eacc8f5effbba88f9e60dab29edcaf5 Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Tue, 12 Jun 2012 11:19:16 -0700 Subject: [PATCH] datapath: Check currect return value from skb_gso_segment() Fix return check typo. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross Bug #11933 --- datapath/datapath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 605253d8..c2cb6b15 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -410,8 +410,8 @@ static int queue_gso_packets(struct net *net, int dp_ifindex, 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; -- 2.30.2