tg3: Fix tg3_poll_controller() passing wrong pointer to tg3_interrupt()
authorLouis Rilling <Louis.Rilling@kerlabs.com>
Tue, 9 Mar 2010 06:14:41 +0000 (06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2010 15:32:27 +0000 (07:32 -0800)
Commit 09943a1819a240ff4a72f924d0038818fcdd0a90
Author: Matt Carlson <mcarlson@broadcom.com>
Date:   Fri Aug 28 14:01:57 2009 +0000

tg3: Convert ISR parameter to tnapi

forgot to update tg3_poll_controller(), leading to intermittent crashes with
netpoll.

Fix this.

Signed-off-by: Louis Rilling <louis.rilling@kerlabs.com>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c

index 0fa7688ab483fb729c22fbc1f0a1fa54d05b1261..c3b4fe74cd6bbb8e7db9d3d190a9b495f1274c86 100644 (file)
@@ -5279,7 +5279,7 @@ static void tg3_poll_controller(struct net_device *dev)
        struct tg3 *tp = netdev_priv(dev);
 
        for (i = 0; i < tp->irq_cnt; i++)
-               tg3_interrupt(tp->napi[i].irq_vec, dev);
+               tg3_interrupt(tp->napi[i].irq_vec, &tp->napi[i]);
 }
 #endif