From: Sowmini Varadhan Date: Wed, 16 Jul 2014 14:02:26 +0000 (-0400) Subject: sunvnet: clean up objects created in vnet_new() on vnet_exit() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~244^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4b70a07ed12a71131cab7adce2ce91c71b37060;p=pandora-kernel.git sunvnet: clean up objects created in vnet_new() on vnet_exit() Nothing cleans up the objects created by vnet_new(), they are completely leaked. vnet_exit(), after doing the vio_unregister_driver() to clean up ports, should call a helper function that iterates over vnet_list and cleans up those objects. This includes unregister_netdevice() as well as free_netdev(). Signed-off-by: Sowmini Varadhan Acked-by: Dave Kleikamp Reviewed-by: Karl Volz Signed-off-by: David S. Miller --- Reading git-diff-tree failed