mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
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>
This commit is contained in:
parent
367681f4ec
commit
51621fbdb1
@ -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 @@ out_kill_eq:
|
||||
ehea_destroy_eq(adapter->neq);
|
||||
|
||||
out_free_ad:
|
||||
list_del(&adapter->list);
|
||||
kfree(adapter);
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user