Commit e90b21e2 authored by Alexander Viro's avatar Alexander Viro Committed by Jeff Garzik

[netdrvr bonding] use destructor to properly free net device

(required because of driver's use of rtnl_lock/unlock)
parent c134be28
......@@ -3910,7 +3910,6 @@ static void bond_free_all(void)
unregister_netdevice(dev);
bond_deinit(dev);
free_netdev(dev);
}
#ifdef CONFIG_PROC_FS
......@@ -4008,6 +4007,8 @@ static int __init bond_init(struct net_device *dev)
bond_create_proc_info(bond);
#endif
dev->destructor = free_netdev;
list_add_tail(&bond->bond_list, &bond_dev_list);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment