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: v3.2.64~271 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=8b9b092799c87b251f7971cd08845d1d2d64e25b sunvnet: clean up objects created in vnet_new() on vnet_exit() [ Upstream commit a4b70a07ed12a71131cab7adce2ce91c71b37060 ] 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed