Skip to content

Commit

Permalink
tg3: Fix tg3_poll_controller() passing wrong pointer to tg3_interrupt()
Browse files Browse the repository at this point in the history
Commit 09943a1
	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>
  • Loading branch information
Louis Rilling authored and David S. Miller committed Mar 10, 2010
1 parent 78cb279 commit fe234f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fe234f0

Please sign in to comment.