From: Jay Vosburgh Date: Fri, 31 Oct 2008 00:41:15 +0000 (-0700) Subject: bonding: Clean up resource leaks X-Git-Tag: v2.6.28-rc3~3^2~12^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a434e43f3d844192bc23bd7b408bac979c40efe7;p=pandora-kernel.git bonding: Clean up resource leaks This patch reworks the resource free logic performed at the time a bonding device is released. This (a) closes two resource leaks, one for workqueues and one for multicast lists, and (b) improves commonality of code between the "destroy one" and "destroy all" paths by performing final free activity via destructor instead of explicitly (and differently) in each path. "Sean E. Millichamp" reported the workqueue leak, and included a different patch. Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed