diff options
author | Hannes Hering <hering2@de.ibm.com> | 2009-02-11 16:47:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-11 16:47:57 -0500 |
commit | 51621fbdb1ea8709ab67170b54e71be6d9fa29ad (patch) | |
tree | 8a1808d5ecd15d3a4eecadebbc72005c21566cd0 /drivers/net/ehea | |
parent | 367681f4ec9b226db201f181c4f47dd973f733a6 (diff) |
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 <hering2@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea')
-rw-r--r-- | drivers/net/ehea/ehea.h | 2 | ||||
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index f7e2ccfd3e8c..656cf1b8d32b 100644 --- a/drivers/net/ehea/ehea.h +++ b/drivers/net/ehea/ehea.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <asm/io.h> | 40 | #include <asm/io.h> |
41 | 41 | ||
42 | #define DRV_NAME "ehea" | 42 | #define DRV_NAME "ehea" |
43 | #define DRV_VERSION "EHEA_0097" | 43 | #define DRV_VERSION "EHEA_0098" |
44 | 44 | ||
45 | /* eHEA capability flags */ | 45 | /* eHEA capability flags */ |
46 | #define DLPAR_PORT_ADD_REM 1 | 46 | #define DLPAR_PORT_ADD_REM 1 |
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index 489fdb90f764..958dacbb4974 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -3448,6 +3448,7 @@ out_kill_eq: | |||
3448 | ehea_destroy_eq(adapter->neq); | 3448 | ehea_destroy_eq(adapter->neq); |
3449 | 3449 | ||
3450 | out_free_ad: | 3450 | out_free_ad: |
3451 | list_del(&adapter->list); | ||
3451 | kfree(adapter); | 3452 | kfree(adapter); |
3452 | 3453 | ||
3453 | out: | 3454 | out: |