Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754113AbZGXTqV (ORCPT ); Fri, 24 Jul 2009 15:46:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754089AbZGXTqV (ORCPT ); Fri, 24 Jul 2009 15:46:21 -0400 Received: from mail.vyatta.com ([76.74.103.46]:53007 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbZGXTqU (ORCPT ); Fri, 24 Jul 2009 15:46:20 -0400 Date: Fri, 24 Jul 2009 12:46:14 -0700 From: Stephen Hemminger To: "Serge E. Hallyn" Cc: Linux Containers , Sachin Sant , netdev , David Miller , matthltc@us.ibm.com, lkml Subject: Re: [PATCH 1/1] veth: don't free priv->status until dev->destructor (v2) Message-ID: <20090724124614.6acc5054@nehalam> In-Reply-To: <20090626162418.GA24828@us.ibm.com> References: <20090626162418.GA24828@us.ibm.com> Organization: Vyatta X-Mailer: Claws Mail 3.6.1 (GTK+ 2.16.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 25 On Fri, 26 Jun 2009 11:24:18 -0500 "Serge E. Hallyn" wrote: > Based on the commit msg on ae0e8e82205c903978a79ebf5e31c670b61fa5b4, it looks > ether_setup(dev); > @@ -306,7 +320,7 @@ static void veth_setup(struct net_device *dev) > dev->netdev_ops = &veth_netdev_ops; > dev->ethtool_ops = &veth_ethtool_ops; > dev->features |= NETIF_F_LLTX; > - dev->destructor = free_netdev; > + dev->destructor = veth_dev_free; > This is still going to oops if sysfs statistics referenced after module unload because module is unloaded (code is gone) and veth_dev_free no longer exists. I'll respin the original patch (using free_netdev) and fix the statistics complaint. -- 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/