From: David Miller Subject: Re: [PATCH] decnet: handle a failure in neigh_parms_alloc Date: Wed, 24 Jan 2007 14:45:11 -0800 (PST) Message-ID: <20070124.144511.56810202.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, steve@chygwyn.com To: ebiederm@xmission.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:40909 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932841AbXAXWph (ORCPT ); Wed, 24 Jan 2007 17:45:37 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: ebiederm@xmission.com (Eric W. Biederman) Date: Wed, 24 Jan 2007 13:09:40 -0700 > > While enhancing the neighbour code to handle multiple network > namespaces I noticed that decnet is assuming neigh_parms_alloc > will allways succeed, which is clearly wrong. So handle the > failure. > > Signed-off-by: Eric W. Biederman I don't think this one is correct. During failure cleanup you also have to invoke the neighbour parms ->down() operation if present, else you leave multicast entries on the ethernet device for example.