[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <OF11F5BC96.16E9F85A-ON8825728F.00018101-8825728F.00020608@us.ibm.com>
Date: Mon, 26 Feb 2007 17:22:10 -0700
From: David Stevens <dlstevens@...ibm.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org
Subject: [PATCH] /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.
Patch below & attached.
+-DLS
Signed-off-by: David L Stevens <dlstevens@...ibm.com>
--- linux-2.6.20.1/net/ipv6/anycast.c 2007-02-19 22:34:32.000000000
-0800
+++ linux-2.6.20.1T1/net/ipv6/anycast.c 2007-02-26 15:37:04.000000000
-0800
@@ -462,6 +462,7 @@ static inline struct ifacaddr6 *ac6_get_
break;
}
read_unlock_bh(&idev->lock);
+ in6_dev_put(idev);
}
return im;
}
Download attachment "ac6.patch" of type "application/octet-stream" (301 bytes)
Powered by blists - more mailing lists