]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ehea: Fix napi list corruption on ifconfig down
authorHannes Hering <hering2@de.ibm.com>
Tue, 4 Aug 2009 18:48:39 +0000 (11:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2009 18:48:39 +0000 (11:48 -0700)
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>
drivers/net/ehea/ehea.h
drivers/net/ehea/ehea_main.c

index 78952f8324e222df8320162cbe8eb911af58a738..fa311a950996720895026f7e3e9d079165f5759c 100644 (file)
@@ -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
index e8d46cc1bec2525ac014a727f7743dd77c108848..977c3d358279378086f2e82ee03ed21f31221dc7 100644 (file)
@@ -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) {