Commit 51621fbd authored by Hannes Hering's avatar Hannes Hering Committed by David S. Miller

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: default avatarHannes Hering <hering2@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 367681f4
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <asm/io.h> #include <asm/io.h>
#define DRV_NAME "ehea" #define DRV_NAME "ehea"
#define DRV_VERSION "EHEA_0097" #define DRV_VERSION "EHEA_0098"
/* eHEA capability flags */ /* eHEA capability flags */
#define DLPAR_PORT_ADD_REM 1 #define DLPAR_PORT_ADD_REM 1
......
...@@ -3448,6 +3448,7 @@ static int __devinit ehea_probe_adapter(struct of_device *dev, ...@@ -3448,6 +3448,7 @@ static int __devinit ehea_probe_adapter(struct of_device *dev,
ehea_destroy_eq(adapter->neq); ehea_destroy_eq(adapter->neq);
out_free_ad: out_free_ad:
list_del(&adapter->list);
kfree(adapter); kfree(adapter);
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment