dect
/
linux-2.6
Archived
13
0
Fork 0

myri10ge: fix rmmod crash

Rmmod myri10ge crash at free_netdev() -> netif_napi_del(), because napi
structures are already deallocated. To fix call netif_napi_del() before
kfree() at myri10ge_free_slices().

Cc: stable@kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Stanislaw Gruszka 2011-03-23 02:44:30 +00:00 committed by David S. Miller
parent 61b85bf606
commit cda6587c21
1 changed files with 1 additions and 0 deletions

View File

@ -3645,6 +3645,7 @@ static void myri10ge_free_slices(struct myri10ge_priv *mgp)
dma_free_coherent(&pdev->dev, bytes,
ss->fw_stats, ss->fw_stats_bus);
ss->fw_stats = NULL;
netif_napi_del(&ss->napi);
}
}
kfree(mgp->ss);