aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Stevens <dlstevens@us.ibm.com>2007-03-08 08:40:07 +0100
committerAdrian Bunk <bunk@stusta.de>2007-03-08 08:40:07 +0100
commit42e1e229bad37376acf033f14baad9fca2e8584f (patch)
tree65d88ccf62e38f16dfe95e34627d55cb18bddf4e
parent6ba50d10b7b7d8d0b6ef7150b705897dbfd05507 (diff)
[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 <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r--net/ipv6/anycast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index 840a33d3329..2f829e1a348 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;
}