From: Hannes Hering Date: Tue, 4 Aug 2009 18:48:39 +0000 (-0700) Subject: ehea: Fix napi list corruption on ifconfig down X-Git-Tag: v2.6.27.32~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d45bb9161000683a0f0e10dbca21a3a6f453a6e1;p=thirdparty%2Fkernel%2Fstable.git ehea: Fix napi list corruption on ifconfig down commit 357eb46d8f275b4e8484541234ea3ba06065e258 upstream. 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index a6e730f31520f..682f41197c70b 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c @@ -1530,6 +1530,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) {