diff options
author | Hannes Hering <hering2@de.ibm.com> | 2009-08-04 20:48:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-04 20:48:39 +0200 |
commit | 357eb46d8f275b4e8484541234ea3ba06065e258 (patch) | |
tree | c89b2fba5e83a7388b4df6d0dd43c270d42c4e32 /drivers/net/ehea/ehea_main.c | |
parent | igbvf: Allow VF driver to correctly recognize failure to set mac (diff) | |
download | linux-357eb46d8f275b4e8484541234ea3ba06065e258.tar.xz linux-357eb46d8f275b4e8484541234ea3ba06065e258.zip |
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 <hering2@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-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 e8d46cc1bec2..977c3d358279 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c @@ -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) { |