Subject: ehea: Fix: Remove adapter from adapter list in error path
From: Hannes Hering <[email-masked]>
Date: Wed, 11 Feb 2009 21:47:57 +0000 (-0800)

ehea: Fix: Remove adapter from adapter list in error path

Remove adapter from adapter list before freeing data structure in
error path.

Signed-off-by: Hannes Hering <[email-masked]>
Signed-off-by: David S. Miller <[email-masked]>
---

diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 489fdb9..958dacb 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -3448,6 +3448,7 @@ out_kill_eq:
 	ehea_destroy_eq(adapter->neq);
 
 out_free_ad:
+	list_del(&adapter->list);
 	kfree(adapter);
 
 out: