diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-20 03:26:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-20 03:26:16 -0500 |
commit | da12f7356da1dfb97f1c6c418f828b7ce442fef9 (patch) | |
tree | 65dd2ee68a8742ee77d26c1886d6273cffd962a6 | |
parent | 5f31886ff03ef68dc078c585fa3a2af9a011a8fa (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>
-rw-r--r-- | net/core/neighbour.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index a16cf1ec5e5e..4062b88bfc1b 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -507,6 +507,7 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl, | |||
507 | if (tbl->pconstructor && tbl->pconstructor(n)) { | 507 | if (tbl->pconstructor && tbl->pconstructor(n)) { |
508 | if (dev) | 508 | if (dev) |
509 | dev_put(dev); | 509 | dev_put(dev); |
510 | release_net(net); | ||
510 | kfree(n); | 511 | kfree(n); |
511 | n = NULL; | 512 | n = NULL; |
512 | goto out; | 513 | goto out; |