]> Pileus Git - ~andy/linux/commit
bonding: fix device name allocation error
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 20 Jan 2007 02:15:31 +0000 (18:15 -0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:47 +0000 (16:58 -0500)
commite4b91c484611da385e34ff0f8bb2744ae2c735b7
tree5887acc060adf2dfe900fdcc11127156ad6b6217
parentbc63eb9c7ec0eb7b091db2d82d46d1e68ff9e231
bonding: fix device name allocation error

The code to select names for the bonding interfaces was, for the
non-sysfs creation case, always using a hard-coded set of bond0, bond1,
etc, up to max_bonds.  This caused conflicts for the second or
subsequent loads of the module.

Changed the code to obtain device names from dev_alloc_name().

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_main.c