Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757959AbZFIRXp (ORCPT ); Tue, 9 Jun 2009 13:23:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753587AbZFIRXf (ORCPT ); Tue, 9 Jun 2009 13:23:35 -0400 Received: from mail.vyatta.com ([76.74.103.46]:50309 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbZFIRXe (ORCPT ); Tue, 9 Jun 2009 13:23:34 -0400 Date: Tue, 9 Jun 2009 10:23:29 -0700 From: Stephen Hemminger To: Patrick McHardy Cc: Jay Vosburgh , Arnd Bergmann , "David S. Miller" , bonding-devel@lists.sf.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bonding: fix multiple module load problem Message-ID: <20090609102329.565e9019@nehalam> In-Reply-To: <4A2E8D62.6090004@trash.net> References: <20090608151127.70146505@nehalam> <200906091406.45463.arnd@arndb.de> <20090609080232.45f81833@nehalam> <4A2E80B3.6010600@trash.net> <4752.1244564082@death.nxdomain.ibm.com> <4A2E8D62.6090004@trash.net> 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: 952 Lines: 26 Some users still load bond module multiple times to create bonding devices. This accidentally was broken when sysfs interface was added. Note: sysfs and procfs still produce WARN() messages when this is done so the sysfs method is the recommended API. Signed-off-by: Stephen Hemminger --- Patch against 2.6.30-rc8 --- a/drivers/net/bonding/bond_sysfs.c 2009-06-09 10:07:29.618979856 -0700 +++ b/drivers/net/bonding/bond_sysfs.c 2009-06-09 10:18:04.039973238 -0700 @@ -1538,6 +1538,7 @@ int bond_create_sysfs(void) printk(KERN_ERR "network device named %s already exists in sysfs", class_attr_bonding_masters.attr.name); + ret = 0; } return ret; -- 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/