diff options
author | Moni Shoua <monis@voltaire.com> | 2007-10-09 22:43:43 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-15 14:20:46 -0400 |
commit | d90a162a4ee280201e84944a84f86d6728dc0c27 (patch) | |
tree | eff59bda3c6fcec2556b7d80838979e6fe705a43 /Documentation/CodingStyle | |
parent | 1053f62c24faa6d4ee6f5bfddeca847b84f67a95 (diff) |
net/bonding: Destroy bonding master when last slave is gone
When bonding enslaves non Ethernet devices it takes pointers to functions
in the module that owns the slaves. In this case it becomes unsafe
to keep the bonding master registered after last slave was unenslaved
because we don't know if the pointers are still valid. Destroying the bond when slave_cnt is zero
ensures that these functions be used anymore.
Signed-off-by: Moni Shoua <monis at voltaire.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'Documentation/CodingStyle')
0 files changed, 0 insertions, 0 deletions