summaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_main.c
diff options
context:
space:
mode:
authorHannes Hering <hering2@de.ibm.com>2009-02-11 13:47:57 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-11 13:47:57 -0800
commit51621fbdb1ea8709ab67170b54e71be6d9fa29ad (patch)
tree8a1808d5ecd15d3a4eecadebbc72005c21566cd0 /drivers/net/ehea/ehea_main.c
parent367681f4ec9b226db201f181c4f47dd973f733a6 (diff)
downloadop-kernel-dev-51621fbdb1ea8709ab67170b54e71be6d9fa29ad.zip
op-kernel-dev-51621fbdb1ea8709ab67170b54e71be6d9fa29ad.tar.gz
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/ehea_main.c')
-rw-r--r--drivers/net/ehea/ehea_main.c1
1 files changed, 1 insertions, 0 deletions
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:
OpenPOWER on IntegriCloud