--- linux/drivers/net/bonding.c-orig Fri Dec 21 23:11:54 2001 +++ linux/drivers/net/bonding.c Sat Feb 16 17:03:48 2002 @@ -226,7 +226,7 @@ static struct bonding *these_bonds = NULL; static struct net_device *dev_bonds = NULL; -MODULE_PARM(max_bonds, "1-" __MODULE_STRING(INT_MAX) "i"); +MODULE_PARM(max_bonds,"i"); MODULE_PARM_DESC(max_bonds, "Max number of bonded devices"); MODULE_PARM(miimon, "i"); MODULE_PARM_DESC(miimon, "Link check interval in milliseconds"); @@ -1981,6 +1981,10 @@ /* Find a name for this unit */ static struct net_device *dev_bond = NULL; + + /* If max_bonds <=0, set it to MAX_BONDS */ + if(max_bonds <=0) + max_bonds = MAX_BONDS; dev_bond = dev_bonds = kmalloc(max_bonds*sizeof(struct net_device), GFP_KERNEL);