From: Michael Ellerman Date: Thu, 1 Sep 2005 01:29:08 +0000 (+1000) Subject: [PATCH] iseries_veth: Make init_connection() & destroy_connection() symmetrical X-Git-Tag: v2.6.14-rc1~1018^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec60beebed497691c97d674c1facac5ca3d7a4b3;p=pandora-kernel.git [PATCH] iseries_veth: Make init_connection() & destroy_connection() symmetrical This patch makes veth_init_connection() and veth_destroy_connection() symmetrical in that they allocate/deallocate the same data. Currently if there's an error while initialising connections (ie. ENOMEM) we call veth_module_cleanup(), however this will oops because we call driver_unregister() before we've called driver_register(). I've never seen this actually happen though. So instead we explicitly call veth_destroy_connection() for each connection, any that have been set up will be deallocated. We also fix a potential leak if vio_register_driver() fails. Signed-off-by: Michael Ellerman Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed