From: Ron Mercer Date: Mon, 2 Feb 2009 21:54:31 +0000 (-0800) Subject: qlge: bugfix: Add missing netif_napi_del call. X-Git-Tag: 2.1b_release~13757^2~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0047e5d240ede4e84c03bc9001375175900fd259;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git qlge: bugfix: Add missing netif_napi_del call. Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index c6c0704..3d1d7b6 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -3836,7 +3836,7 @@ static int qlge_suspend(struct pci_dev *pdev, pm_message_t state) { struct net_device *ndev = pci_get_drvdata(pdev); struct ql_adapter *qdev = netdev_priv(ndev); - int err; + int err, i; netif_device_detach(ndev); @@ -3846,6 +3846,9 @@ static int qlge_suspend(struct pci_dev *pdev, pm_message_t state) return err; } + for (i = qdev->rss_ring_first_cq_id; i < qdev->rx_ring_count; i++) + netif_napi_del(&qdev->rx_ring[i].napi); + err = pci_save_state(pdev); if (err) return err;