summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-02-02 13:54:31 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-02 13:54:31 -0800
commit0047e5d240ede4e84c03bc9001375175900fd259 (patch)
treeffee6b03e42d175afbf8c91e198d75b3e31e08ec /drivers
parente78f5fa7cc1a211eb9909ef90b0de3311086ba55 (diff)
downloadlinux-stable-0047e5d240ede4e84c03bc9001375175900fd259.tar.gz
linux-stable-0047e5d240ede4e84c03bc9001375175900fd259.tar.bz2
linux-stable-0047e5d240ede4e84c03bc9001375175900fd259.zip
qlge: bugfix: Add missing netif_napi_del call.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/qlge/qlge_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index c6c070475f07..3d1d7b6e55aa 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;