]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
IPV6: /proc/net/anycast6 unbalanced inet6_dev refcnt
authorDavid Stevens <dlstevens@us.ibm.com>
Tue, 27 Feb 2007 00:28:56 +0000 (16:28 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:46 +0000 (14:27 -0700)
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>
Cc: Marcus Meissner <meissner@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/anycast.c

index 9b81264eb78f2b0fcdf336f1b52c1df02f094be1..2f49578e52a1ae017e59e1037ff065b672d77497 100644 (file)
@@ -66,6 +66,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;