Netdev List
 help / color / mirror / Atom feed
* [PATCH] [NETNS]: Namespace leak in pneigh_lookup.
@ 2008-02-19 13:12 Denis V. Lunev
  2008-02-20  8:26 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Denis V. Lunev @ 2008-02-19 13:12 UTC (permalink / raw)
  To: davem; +Cc: netdev, containers, devel, dlezcano, Denis V. Lunev

release_net is missed on the error path in pneigh_lookup.

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 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 7bb6a9a..174e29e 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;
-- 
1.5.3.rc5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-20  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 13:12 [PATCH] [NETNS]: Namespace leak in pneigh_lookup Denis V. Lunev
2008-02-20  8:26 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox