refresh patches
[openwrt/svn-archive/archive.git] / target / linux / rb532 / patches-2.6.28 / 009-korina_disable_napi_on_close_and_restart.patch
1 Without this the driver will crash when the NIC is being restarted.
2
3 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
4 ---
5 drivers/net/korina.c | 4 ++++
6 1 files changed, 4 insertions(+), 0 deletions(-)
7
8 --- a/drivers/net/korina.c
9 +++ b/drivers/net/korina.c
10 @@ -905,6 +905,8 @@ static int korina_restart(struct net_dev
11
12 korina_free_ring(dev);
13
14 + napi_disable(&lp->napi);
15 +
16 ret = korina_init(dev);
17 if (ret < 0) {
18 printk(KERN_ERR DRV_NAME "%s: cannot restart device\n",
19 @@ -1071,6 +1073,8 @@ static int korina_close(struct net_devic
20
21 korina_free_ring(dev);
22
23 + napi_disable(&lp->napi);
24 +
25 free_irq(lp->rx_irq, dev);
26 free_irq(lp->tx_irq, dev);
27 free_irq(lp->ovr_irq, dev);