diff options
author | Hannes Hering <hering2@de.ibm.com> | 2009-08-04 11:48:39 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:16:54 -0700 |
commit | d45bb9161000683a0f0e10dbca21a3a6f453a6e1 (patch) | |
tree | 59e03472eeed1580ef1e64255a318ac8f1ec48f4 /drivers | |
parent | 70a1f1e8105d1a944fdfbf1e26cd8d3bfc79c0ff (diff) |
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 <hering2@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index a6e730f3152..682f41197c7 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) { |