From: David Stevens Date: Thu, 8 Mar 2007 07:40:07 +0000 (+0100) Subject: [IPV6]: /proc/net/anycast6 unbalanced inet6_dev refcnt X-Git-Tag: v2.6.16.44-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42e1e229bad37376acf033f14baad9fca2e8584f;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 Signed-off-by: Adrian Bunk --- diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 840a33d332969..2f829e1a34841 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -465,6 +465,7 @@ static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) break; } read_unlock_bh(&idev->lock); + in6_dev_put(idev); } return im; }