ehea: Fix napi list corruption on ifconfig down
Subsystems (2)
PATCH 1/1 ehea: Fix napi list corruption on ifconfig down
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 <[email protected]>
---
drivers/net/ehea/ehea.h +1 -1
@@ -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
drivers/net/ehea/ehea_main.c +3 -0
@@ -1545,6 +1545,9 @@ static int ehea_clean_portres(struct ehe {int ret, i; +if (pr->qp) +netif_napi_del (&pr->napi); + ret =ehea_destroy_qp (pr->qp);if (!ret) {
From: Hannes Hering <[email protected]>
Date: Tue, 4 Aug 2009 16:20:15 +0200
Quoted 4 lines
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 <[email protected]>
Applied, thanks.