From: Hannes Hering Date: Wed, 11 Feb 2009 21:47:57 +0000 (-0800) Subject: ehea: Fix: Remove adapter from adapter list in error path X-Git-Tag: firefly_0821_release~15237^2~743 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=51621fbdb1ea8709ab67170b54e71be6d9fa29ad;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David S. Miller --- 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 @@ #include #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0097" +#define DRV_VERSION "EHEA_0098" /* eHEA capability flags */ #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: ehea_destroy_eq(adapter->neq); out_free_ad: + list_del(&adapter->list); kfree(adapter); out: