diff options
author | David Stevens <dlstevens@us.ibm.com> | 2007-02-27 03:28:56 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-28 20:42:10 +0300 |
commit | aa6e4a96e7589948fe770744f7bb4f0f743dddaa (patch) | |
tree | e0ec28da229b9cd1eda2c55f9d0b75e28fa76335 /net/ipv6/anycast.c | |
parent | 1267cd766c712644b45662572df05f28be5a6e89 (diff) | |
download | linux-aa6e4a96e7589948fe770744f7bb4f0f743dddaa.tar.xz |
[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>
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r-- | net/ipv6/anycast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index e5ef5979ade4..09117d63256f 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; } |