From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH][NETNS] release net when pneigh_lookup fails Date: Tue, 30 Oct 2007 18:10:13 +0100 Message-ID: <47276575.8080807@fr.ibm.com> References: <47272C3B.5080601@fr.ibm.com> <1193762132.24087.265.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1193762132.24087.265.camel@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Dave Hansen Cc: Containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, "Eric W. Biederman" List-Id: containers.vger.kernel.org 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.