From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
To: "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
Cc: Containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: [PATCH][NETNS] release net when pneigh_lookup fails
Date: Tue, 30 Oct 2007 14:06:03 +0100 [thread overview]
Message-ID: <47272C3B.5080601@fr.ibm.com> (raw)
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;
next reply other threads:[~2007-10-30 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 13:06 Daniel Lezcano [this message]
[not found] ` <47272C3B.5080601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-30 16:35 ` [PATCH][NETNS] release net when pneigh_lookup fails Dave Hansen
2007-10-30 17:10 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47272C3B.5080601@fr.ibm.com \
--to=dlezcano-nmtc/0zbporqt0dzr+alfa@public.gmane.org \
--cc=Containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox