Skip to content

Commit

Permalink
ehea: Fix napi list corruption on ifconfig down
Browse files Browse the repository at this point in the history
This patch fixes the napi list handling when an ehea interface is shut
down to avoid corruption of the napi list.

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 Aug 4, 2009
1 parent e0cff5e commit 357eb46
Show file tree
Hide file tree
Showing 2 changed files with 4 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_0101"
#define DRV_VERSION "EHEA_0102"

/* eHEA capability flags */
#define DLPAR_PORT_ADD_REM 1
Expand Down
3 changes: 3 additions & 0 deletions drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,9 @@ static int ehea_clean_portres(struct ehea_port *port, struct ehea_port_res *pr)
{
int ret, i;

if (pr->qp)
netif_napi_del(&pr->napi);

ret = ehea_destroy_qp(pr->qp);

if (!ret) {
Expand Down

0 comments on commit 357eb46

Please sign in to comment.