Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966555AbXJSElO (ORCPT ); Fri, 19 Oct 2007 00:41:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756572AbXJSEkz (ORCPT ); Fri, 19 Oct 2007 00:40:55 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:50894 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754627AbXJSEky (ORCPT ); Fri, 19 Oct 2007 00:40:54 -0400 Date: Thu, 18 Oct 2007 21:41:07 -0700 (PDT) Message-Id: <20071018.214107.21905270.davem@davemloft.net> To: ezk@cs.sunysb.edu Cc: jeff@garzik.org, linux-kernel@vger.kernel.org, pcnet32@verizon.net, netdev@vger.kernel.org Subject: Re: broken PCNET32 in 2.6.24 requires experimental PCNET32_NAPI? From: David Miller In-Reply-To: <200710190433.l9J4X9vh011890@agora.fsl.cs.sunysb.edu> References: <4717C90A.4060208@garzik.org> <200710190433.l9J4X9vh011890@agora.fsl.cs.sunysb.edu> X-Mailer: Mew version 5.1.52 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 39 From: Erez Zadok Date: Fri, 19 Oct 2007 00:33:09 -0400 > Call Trace: > [] show_trace_log_lvl+0x1a/0x2f > [] show_stack_log_lvl+0x9b/0xa3 > [] show_registers+0x1b4/0x285 > [] die+0x100/0x21d > [] do_page_fault+0x434/0x515 > [] error_code+0x6a/0x70 > [] sock_setsockopt+0x43f/0x494 > [] sys_setsockopt+0x4f/0x85 > [] sys_socketcall+0x1cb/0x222 > [] sysenter_past_esp+0x5f/0x91 This fix from Olof Johnson should fix it. I'll merge this tonight. diff --git a/net/core/filter.c b/net/core/filter.c index 1f0068e..e0a0694 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -447,7 +447,8 @@ int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk) rcu_assign_pointer(sk->sk_filter, fp); rcu_read_unlock_bh(); - sk_filter_delayed_uncharge(sk, old_fp); + if (old_fp) + sk_filter_delayed_uncharge(sk, old_fp); return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/