From: David Stevens Date: Tue, 27 Feb 2007 00:28:56 +0000 (-0800) Subject: [PATCH] IPV6: /proc/net/anycast6 unbalanced inet6_dev refcnt X-Git-Tag: v2.6.20.17~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac82581f098be0d3f6ef011d2b168181f4f79a0e;p=thirdparty%2Fkernel%2Fstable.git [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 Signed-off-by: Willy Tarreau --- diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index fe0c895d03a50..7cf524847e2ac 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -67,6 +67,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;