bonding: fix destructor
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 12 Jun 2009 19:02:47 +0000 (19:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jun 2009 06:28:56 +0000 (23:28 -0700)
commit9e71626c1c23ec69372c43c6fe66c1171032bf42
tree664e2c6d342c210a6f041b97ed9a3d9c1bc58f06
parent7e0838404541d2758bee089632690aabd82f3d5d
bonding: fix destructor

It is not safe to use a network device destructor that is a function in
the module, since it can be called after module is unloaded if sysfs
handle is open.

When eventually using netlink, the device cleanup code needs to be done
via uninit function.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h