From 05b1ed7990f79388573430faf4f28c31eeaf377b Mon Sep 17 00:00:00 2001 From: David Stevens Date: Mon, 26 Feb 2007 16:28:56 -0800 Subject: [PATCH] IPV6: /proc/net/anycast6 unbalanced inet6_dev refcnt Reading /proc/net/anycast6 when there is no anycast address on an interface results in an ever-increasing inet6_dev reference count, as well as a reference to the netdevice you can't get rid of. Signed-off-by: David S. Miller Cc: Marcus Meissner Signed-off-by: Greg Kroah-Hartman --- net/ipv6/anycast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 9b81264eb78f..2f49578e52a1 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -66,6 +66,7 @@ ip6_onlink(struct in6_addr *addr, struct net_device *dev) break; } read_unlock_bh(&idev->lock); + in6_dev_put(idev); } rcu_read_unlock(); return onlink; -- 2.39.5