linux/drivers/net/bonding
Veaceslav Falico dc73c41f4e bonding: populate essential new_slave->bond/dev early
The new bond_free_slave() needs new_slave->bond to verify if additional
structures were allocated, so populate it early so that, in case of failure
in bond_enslave(), we would be able to get it.

Also populate the new_slave->dev field, as it's too one of the most needed
things to assign early.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Acked-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-22 15:46:34 -04:00
..
bond_3ad.c bonding: replace SLAVE_IS_OK() with bond_slave_can_tx() 2014-05-16 16:34:33 -04:00
bond_3ad.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-02-19 01:24:22 -05:00
bond_alb.c bonding: replace SLAVE_IS_OK() with bond_slave_can_tx() 2014-05-16 16:34:33 -04:00
bond_alb.h bonding: Added bond_tlb_xmit() for tlb mode. 2014-04-24 13:04:34 -04:00
bond_debugfs.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bond_main.c bonding: populate essential new_slave->bond/dev early 2014-05-22 15:46:34 -04:00
bond_netlink.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bond_options.c bonding: convert IS_UP(slave->dev) to inline function 2014-05-16 16:34:32 -04:00
bond_options.h bonding: make a generic sysfs option store and fix comments 2014-05-09 16:12:51 -04:00
bond_procfs.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bond_sysfs_slave.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bond_sysfs.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bonding.h bonding: replace SLAVE_IS_OK() with bond_slave_can_tx() 2014-05-16 16:34:33 -04:00
Makefile bonding: add sysfs /slave dir for bond slave devices. 2014-01-17 18:51:58 -08:00