Skip to content

Commit

Permalink
ehea: Fix: Remove adapter from adapter list in error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Hering authored and David S. Miller committed Feb 11, 2009
1 parent 367681f commit 51621fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ehea/ehea.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51621fb

Please sign in to comment.