From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v3 10/12] l2tp: Add L2TP ethernet pseudowire support Date: Tue, 30 Mar 2010 09:30:09 -0700 Message-ID: <20100330093009.367447df@nehalam> References: <20100330161725.9628.69994.stgit@bert.katalix.com> <20100330161819.9628.10853.stgit@bert.katalix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: James Chapman Return-path: Received: from mail.vyatta.com ([76.74.103.46]:33045 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754433Ab0C3R0m (ORCPT ); Tue, 30 Mar 2010 13:26:42 -0400 In-Reply-To: <20100330161819.9628.10853.stgit@bert.katalix.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 30 Mar 2010 17:18:19 +0100 James Chapman wrote: > static inline struct l2tp_eth_net *l2tp_eth_pernet(struct net *net) > +{ > + BUG_ON(!net); > + > + return net_generic(net, l2tp_eth_net_id); > +} Don't test for NULL with BUG_ON. It is redundant, the null dereference will cause the same kind of backtrace failure. --