aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-20 00:26:16 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-20 00:26:16 -0800
commitda12f7356da1dfb97f1c6c418f828b7ce442fef9 (patch)
tree65dd2ee68a8742ee77d26c1886d6273cffd962a6 /net
parent5f31886ff03ef68dc078c585fa3a2af9a011a8fa (diff)
[NETNS]: Namespace leak in pneigh_lookup.
release_net is missed on the error path in pneigh_lookup. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/neighbour.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index a16cf1ec5e5..4062b88bfc1 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -507,6 +507,7 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl,
if (tbl->pconstructor && tbl->pconstructor(n)) {
if (dev)
dev_put(dev);
+ release_net(net);
kfree(n);
n = NULL;
goto out;