sunvnet: clean up objects created in vnet_new() on vnet_exit()
commit19a0d61e688489f39778cf20eb71f2f19b79cd1a
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 16 Jul 2014 14:02:26 +0000 (16 10:02 -0400)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Nov 2014 09:55:39 +0000 (23 10:55 +0100)
treed49d87cc0882e2ebf8dedc892940804580a865c5
parentef94866eb091d2d92bf99633daf2d819825abe89
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 <sowmini.varadhan@oracle.com>
Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Reviewed-by: Karl Volz <karl.volz@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/sunvnet.c