diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-06-12 15:02:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-14 02:28:56 -0400 |
commit | 9e71626c1c23ec69372c43c6fe66c1171032bf42 (patch) | |
tree | 664e2c6d342c210a6f041b97ed9a3d9c1bc58f06 /drivers/net/bonding/bonding.h | |
parent | 7e0838404541d2758bee089632690aabd82f3d5d (diff) |
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>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index af81e9b7fe34..6290a502742e 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -322,7 +322,6 @@ static inline void bond_unset_master_alb_flags(struct bonding *bond) | |||
322 | struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr); | 322 | struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr); |
323 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); | 323 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); |
324 | int bond_create(const char *name); | 324 | int bond_create(const char *name); |
325 | void bond_destroy(struct bonding *bond); | ||
326 | int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev); | 325 | int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev); |
327 | int bond_create_sysfs(void); | 326 | int bond_create_sysfs(void); |
328 | void bond_destroy_sysfs(void); | 327 | void bond_destroy_sysfs(void); |