diff options
author | David Stevens <dlstevens@us.ibm.com> | 2007-02-27 11:14:00 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-03-09 10:50:27 -0800 |
commit | 9e44f708876955f49190c04ce83b9dcb712ce3ff (patch) | |
tree | 24a45ed44007452dbe2df460e10d5a96ec062f6b /net | |
parent | 74ba050ddee2ade5fcdad88433c26ffea7034b13 (diff) |
Fix anycast procfs device leak
[IPV6]: /proc/net/anycast6 unbalanced inet6_dev refcnt
From: David Stevens <dlstevens@us.ibm.com>
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.
From: David Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-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 a9604764e01..fe0c895d03a 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -462,6 +462,7 @@ static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) break; } read_unlock_bh(&idev->lock); + in6_dev_put(idev); } return im; } |