From: Moni Shoua Date: Wed, 10 Oct 2007 02:43:43 +0000 (-0700) Subject: net/bonding: Destroy bonding master when last slave is gone X-Git-Tag: v2.6.24-rc1~1281^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d90a162a4ee280201e84944a84f86d6728dc0c27;p=pandora-kernel.git 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 Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed