[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKgT0UdNL57YV9qJstjzpqbr9WutUvPRZ5VaPwCnUNV_hMRgdw@mail.gmail.com>
Date: Tue, 19 Apr 2016 10:57:51 -0700
From: Alexander Duyck <alexander.duyck@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Alexander Duyck <aduyck@...antis.com>,
Jesse Gross <jesse@...nel.org>,
"John W. Linville" <linville@...driver.com>,
Pravin B Shelar <pshelar@...ira.com>,
Jiri Benc <jbenc@...hat.com>,
Daniel Borkmann <daniel@...earbox.net>,
Tom Herbert <tom@...bertland.com>,
Netdev <netdev@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: Re: [patch -next] geneve: testing the wrong variable in geneve6_build_skb()
On Tue, Apr 19, 2016 at 7:30 AM, Dan Carpenter <dan.carpenter@...cle.com> wrote:
> We intended to test "err" and not "skb".
>
> Fixes: aed069df099c ('ip_tunnel_core: iptunnel_handle_offloads returns int and doesn't free skb')
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
>
> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> index efbc7ce..512dbe0 100644
> --- a/drivers/net/geneve.c
> +++ b/drivers/net/geneve.c
> @@ -733,7 +733,7 @@ static int geneve6_build_skb(struct dst_entry *dst, struct sk_buff *skb,
> goto free_dst;
>
> err = udp_tunnel_handle_offloads(skb, udp_sum);
> - if (IS_ERR(skb))
> + if (err)
> goto free_dst;
>
> gnvh = (struct genevehdr *)__skb_push(skb, sizeof(*gnvh) + opt_len);
Yeah, this looks like I missed a spot. Thanks for catching this.
Acked-by: Alexander Duyck <aduyck@...antis.com>
Powered by blists - more mailing lists