From: David Stevens Date: Tue, 27 Feb 2007 00:28:56 +0000 (-0800) Subject: IPV6: /proc/net/anycast6 unbalanced inet6_dev refcnt X-Git-Tag: v2.6.22.2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05b1ed7990f79388573430faf4f28c31eeaf377b;p=thirdparty%2Fkernel%2Fstable.git 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 --- diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 9b81264eb78f2..2f49578e52a1a 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;