diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-20 09:26:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-20 09:26:16 +0100 |
commit | da12f7356da1dfb97f1c6c418f828b7ce442fef9 (patch) | |
tree | 65dd2ee68a8742ee77d26c1886d6273cffd962a6 /net | |
parent | [SCTP]: Pick up an orphaned sctp_sockets_allocated counter. (diff) | |
download | linux-da12f7356da1dfb97f1c6c418f828b7ce442fef9.tar.xz linux-da12f7356da1dfb97f1c6c418f828b7ce442fef9.zip |
[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.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, if (tbl->pconstructor && tbl->pconstructor(n)) { if (dev) dev_put(dev); + release_net(net); kfree(n); n = NULL; goto out; |