]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IPV6]: /proc/net/anycast6 unbalanced inet6_dev refcnt
authorDavid Stevens <dlstevens@us.ibm.com>
Thu, 8 Mar 2007 07:40:07 +0000 (08:40 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 8 Mar 2007 07:40:07 +0000 (08:40 +0100)
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>
net/ipv6/anycast.c

index 840a33d3329696bfc5f9c2a67ca6e86b6336dca0..2f829e1a34841ee44f8d8a8dd725d8a2d4dc948c 100644 (file)
@@ -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;
 }