diff options
author | Moni Shoua <monis@voltaire.com> | 2007-10-09 19:43:43 -0700 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-15 14:20:46 -0400 |
commit | d90a162a4ee280201e84944a84f86d6728dc0c27 (patch) | |
tree | eff59bda3c6fcec2556b7d80838979e6fe705a43 /lib/div64.c | |
parent | 1053f62c24faa6d4ee6f5bfddeca847b84f67a95 (diff) | |
download | linux-d90a162a4ee280201e84944a84f86d6728dc0c27.tar.bz2 |
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 'lib/div64.c')
0 files changed, 0 insertions, 0 deletions