[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <95cb5670-eaf0-c7af-7e35-bc4f6e68c5ba@gmail.com>
Date: Fri, 26 Oct 2018 15:44:32 -0600
From: David Ahern <dsahern@...il.com>
To: Jeff Barnhill <0xeffeff@...il.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH net v3] net/ipv6: Add anycast addresses to a global
hashtable
On 10/26/18 3:22 PM, Jeff Barnhill wrote:
> @@ -275,6 +356,13 @@ int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr)
> err = -ENOMEM;
> goto out;
> }
> + err = ipv6_add_acaddr_hash(dev_net(idev->dev), addr);
> + if (err) {
> + fib6_info_release(f6i);
> + fib6_info_release(f6i);
> + kfree(aca);
> + goto out;
> + }
I think aca_put() makes this less confusing as it will do the
fib6_info_release(f6i) and kfree(aca);
Powered by blists - more mailing lists