ehea: Fix: Remove adapter from adapter list in error path
authorHannes Hering <hering2@de.ibm.com>
Wed, 11 Feb 2009 21:47:57 +0000 (13:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Feb 2009 21:47:57 +0000 (13:47 -0800)
Remove adapter from adapter list before freeing data structure in
error path.

Signed-off-by: Hannes Hering <hering2@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ehea/ehea.h
drivers/net/ehea/ehea_main.c

index f7e2ccfd3e8cfe73c2f23467ca905f29d5445bc0..656cf1b8d32b57f3b7c32a552a9f17202a73560e 100644 (file)
@@ -40,7 +40,7 @@
 #include <asm/io.h>
 
 #define DRV_NAME       "ehea"
-#define DRV_VERSION    "EHEA_0097"
+#define DRV_VERSION    "EHEA_0098"
 
 /* eHEA capability flags */
 #define DLPAR_PORT_ADD_REM 1
index 489fdb90f7647ac1524b4be6c8545b1cd2a25cc9..958dacbb49741caffd8545c96248ec402eb69c59 100644 (file)
@@ -3448,6 +3448,7 @@ out_kill_eq:
        ehea_destroy_eq(adapter->neq);
 
 out_free_ad:
+       list_del(&adapter->list);
        kfree(adapter);
 
 out: