kernel-fxtec-pro1x/drivers/net/bonding
Florian Westphal 9d34d1a20e bonding: fix panic if initialization fails
If module initialisation failed (e.g. because the bonding sysfs entry
cannot be created), kernel panics:
 IP: [<ffffffff8024910a>] destroy_workqueue+0x2d/0x146
Call Trace:
 [<ffffffff808268c4>] bond_destructor+0x28/0x78
 [<ffffffff80b64471>] netdev_run_todo+0x231/0x25a
 [<ffffffff80b6dbcd>] rtnl_unlock+0x9/0xb
 [<ffffffff81567907>] bonding_init+0x83e/0x84a

Remove the calls to bond_work_cancel_all() and destroy_workqueue();
both are also called/scheduled via bond_free_all().

bond_destroy_sysfs is unecessary because the sysfs entry has
not been created in the error case.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-05-09 13:19:47 -07:00
..
bond_3ad.c 802.3ad: use standard ethhdr instead of ad_header 2008-12-26 13:41:53 -08:00
bond_3ad.h net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
bond_alb.c bonding: fix alb mode locking regression 2009-05-04 21:28:10 -07:00
bond_alb.h
bond_ipv6.c bonding: use pr_debug instead of own macros 2008-12-09 23:09:22 -08:00
bond_main.c bonding: fix panic if initialization fails 2009-05-09 13:19:47 -07:00
bond_sysfs.c Bonding: fix zero address hole bug in arp_ip_target list 2009-04-13 00:12:41 -07:00
bonding.h drivers/net/bonding: fix sparse warnings: move decls to header file 2008-12-25 23:58:57 -08:00
Makefile