Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754503AbZCKOsA (ORCPT ); Wed, 11 Mar 2009 10:48:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751513AbZCKOrt (ORCPT ); Wed, 11 Mar 2009 10:47:49 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:21837 "EHLO g5t0009.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbZCKOrs (ORCPT ); Wed, 11 Mar 2009 10:47:48 -0400 Message-ID: <49B7CEF2.2000409@hp.com> Date: Wed, 11 Mar 2009 10:47:14 -0400 From: Brian Haley Organization: Open Source and Linux Organization User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: John Dykstra CC: Thomas Backlund , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: BUG when unloading bonding on 2.6.29-rc7-git3 References: <49B6CA4A.2040506@mandriva.org> <1236727393.7958.38.camel@Maple> In-Reply-To: <1236727393.7958.38.camel@Maple> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1295 Lines: 40 John Dykstra wrote: > ipv6: Fix BUG when disabled ipv6 module is unloaded > > Do not try to "uninitialize" ipv6 if its initialization had been skipped > because module parameter disable=1 had been specified. > > Reported-by: Thomas Backlund > Signed-off-by: John Dykstra > --- > net/ipv6/af_inet6.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c > index da944ec..a0f1798 100644 > --- a/net/ipv6/af_inet6.c > +++ b/net/ipv6/af_inet6.c > @@ -1192,6 +1192,9 @@ module_init(inet6_init); > > static void __exit inet6_exit(void) > { > + if (disable_ipv6) > + return; > + > /* First of all disallow new sockets creation. */ > sock_unregister(PF_INET6); > /* Disallow any further netlink messages */ Acked-by: Brian Haley Thanks for fixing this John. Sorry, this was in the original patch I tested here, but somehow didn't make it into what I sent to Dave. -Brian -- 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/