[Devel] [PATCH][NETNS] release net when pneigh_lookup fails
Daniel Lezcano
dlezcano at fr.ibm.com
Tue Oct 30 06:06:03 PDT 2007
When the neighbour table constructor fails, the network namespace is
not released. This patch fix that.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
---
net/core/neighbour.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6-netns/net/core/neighbour.c
===================================================================
--- linux-2.6-netns.orig/net/core/neighbour.c
+++ linux-2.6-netns/net/core/neighbour.c
@@ -497,6 +497,7 @@ struct pneigh_entry * pneigh_lookup(stru
if (tbl->pconstructor && tbl->pconstructor(n)) {
if (dev)
dev_put(dev);
+ release_net(n->net);
kfree(n);
n = NULL;
goto out;
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list