[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4EA9FBA6.1070806@intel.com>
Date: Fri, 28 Oct 2011 08:47:34 +0800
From: "Yan, Zheng" <zheng.z.yan@...el.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: Herbert Xu <herbert@...dor.apana.org.au>,
"davem@...emloft.net" <davem@...emloft.net>
Subject: Re: [PATCH] xfrm: fix error checking in xfrm_output_gso
On 10/27/2011 01:33 PM, Yan, Zheng wrote:
> xfrm_output2() returns 1 on success. This bug makes xfrm_output_gso()
> drop all segments except the first one.
>
> Signed-off-by: Zheng Yan <zheng.z.yan@...el.com>
> ---
> diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
> index 47bacd8..04e963a 100644
> --- a/net/xfrm/xfrm_output.c
> +++ b/net/xfrm/xfrm_output.c
> @@ -159,7 +159,7 @@ static int xfrm_output_gso(struct sk_buff *skb)
> segs->next = NULL;
> err = xfrm_output2(segs);
>
> - if (unlikely(err)) {
> + if (unlikely(err < 0)) {
> while ((segs = nskb)) {
> nskb = segs->next;
> segs->next = NULL;
Return 1 means collision, please ignore this patch. Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists