1 Without this the driver will crash when the NIC is being restarted.
3 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
5 drivers/net/korina.c | 4 ++++
6 1 files changed, 4 insertions(+), 0 deletions(-)
8 --- a/drivers/net/korina.c
9 +++ b/drivers/net/korina.c
10 @@ -905,6 +905,8 @@ static int korina_restart(struct net_dev
12 korina_free_ring(dev);
14 + napi_disable(&lp->napi);
16 ret = korina_init(dev);
18 printk(KERN_ERR DRV_NAME "%s: cannot restart device\n",
19 @@ -1071,6 +1073,8 @@ static int korina_close(struct net_devic
21 korina_free_ring(dev);
23 + napi_disable(&lp->napi);
25 free_irq(lp->rx_irq, dev);
26 free_irq(lp->tx_irq, dev);
27 free_irq(lp->ovr_irq, dev);