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.21-rc3~149^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa6e4a96e7589948fe770744f7bb4f0f743dddaa;p=linux-2.6 [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 --- diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index e5ef5979ad..09117d6325 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -461,6 +461,7 @@ static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) break; } read_unlock_bh(&idev->lock); + in6_dev_put(idev); } return im; }