From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Denis V. Lunev" Subject: Re: [PATCH 1/2] netns: fix NULL-dereference in dev_net() Date: Fri, 15 Aug 2008 00:20:07 +0400 Message-ID: <1218745207.16589.77.camel@iris.sw.ru> References: <48A4871D.1030708@hp.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48A4871D.1030708@hp.com> Sender: netdev-owner@vger.kernel.org To: Brian Haley Cc: David Miller , netdev@vger.kernel.org, containers List-Id: containers.vger.kernel.org On Thu, 2008-08-14 at 15:27 -0400, Brian Haley wrote: > Change dev_net() to handle a NULL argument - return &init_net instead. > > -Brian > > Signed-off-by: Brian Haley > --- > the code is designed keeping in mind that there are no checks for net != NULL in any place. They are too expensive. We need to invent other way :( Regards, Den