提交 51621fbd 编写于 作者: H Hannes Hering 提交者: 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: NHannes Hering <hering2@de.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 367681f4
......@@ -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
......
......@@ -3448,6 +3448,7 @@ static int __devinit ehea_probe_adapter(struct of_device *dev,
ehea_destroy_eq(adapter->neq);
out_free_ad:
list_del(&adapter->list);
kfree(adapter);
out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册