* [PATCH][NETNS] release net when pneigh_lookup fails
@ 2007-10-30 13:06 Daniel Lezcano
[not found] ` <47272C3B.5080601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2007-10-30 13:06 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: Containers-qjLDD68F18O7TbgM5vRIOg
When the neighbour table constructor fails, the network namespace is
not released. This patch fix that.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
---
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;
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <47272C3B.5080601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH][NETNS] release net when pneigh_lookup fails [not found] ` <47272C3B.5080601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> @ 2007-10-30 16:35 ` Dave Hansen 2007-10-30 17:10 ` Daniel Lezcano 0 siblings, 1 reply; 3+ messages in thread From: Dave Hansen @ 2007-10-30 16:35 UTC (permalink / raw) To: Daniel Lezcano; +Cc: Containers-qjLDD68F18O7TbgM5vRIOg, Eric W. Biederman On Tue, 2007-10-30 at 14:06 +0100, Daniel Lezcano wrote: > > 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; > _______________________________________________ Looks like there are some tabs vs. spaces issues in there. You should probably just make your line match the ones around it. -- Dave ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][NETNS] release net when pneigh_lookup fails 2007-10-30 16:35 ` Dave Hansen @ 2007-10-30 17:10 ` Daniel Lezcano 0 siblings, 0 replies; 3+ messages in thread From: Daniel Lezcano @ 2007-10-30 17:10 UTC (permalink / raw) To: Dave Hansen; +Cc: Containers-qjLDD68F18O7TbgM5vRIOg, Eric W. Biederman Dave Hansen wrote: > On Tue, 2007-10-30 at 14:06 +0100, Daniel Lezcano wrote: >> 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; >> _______________________________________________ > > Looks like there are some tabs vs. spaces issues in there. You should > probably just make your line match the ones around it. Thanks Dave for pointing that. I stupidly did a copy/paste from emacs to thunderbird. Grr ... I will resend this patch with correct indentation. Benjamin spotted this problem with the patches I sent to netdev@ too, they are already fixed. Thansk again. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-30 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 13:06 [PATCH][NETNS] release net when pneigh_lookup fails Daniel Lezcano
[not found] ` <47272C3B.5080601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-30 16:35 ` Dave Hansen
2007-10-30 17:10 ` Daniel Lezcano
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.