Benjamin Li 4327ba435a bnx2: Fix netpoll crash.
The bnx2 driver calls netif_napi_add() for all the NAPI structs during
->probe() time but not all of them will be used if we're not in MSI-X
mode.  This creates a problem for netpoll since it will poll all the
NAPI structs in the dev_list whether or not they are scheduled, resulting
in a crash when we access structure fields not initialized for that vector.

We fix it by moving the netif_napi_add() call to ->open() after the number
of IRQ vectors has been determined.

Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-03-23 23:19:55 -07:00
..
2010-01-03 21:42:50 -08:00
2010-03-15 16:00:50 -07:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2009-09-01 01:13:50 -07:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
2008-11-25 18:25:32 -08:00
2010-02-08 22:44:18 -08:00
2009-04-04 16:51:14 -07:00
2010-03-23 23:19:55 -07:00
2010-02-16 15:19:03 -08:00
2009-08-12 23:03:00 -07:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2009-11-05 20:00:29 -08:00
2010-03-03 01:04:39 -08:00
2008-09-22 19:27:10 -07:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-03-07 15:25:53 -08:00
2009-11-11 19:22:21 -08:00
2009-10-11 11:20:58 -07:00
2008-11-25 18:23:59 -08:00
2008-11-25 18:24:57 -08:00
2009-04-16 02:20:08 -07:00
2009-09-07 01:56:52 -07:00
2009-01-06 10:47:44 -08:00
2009-11-20 15:35:04 -08:00
2010-03-18 21:14:00 -07:00
2009-10-13 11:48:18 -07:00
2009-10-20 19:11:06 -07:00
2008-11-25 18:24:38 -08:00
2010-01-09 23:00:32 -08:00
2010-01-28 06:01:35 -08:00
2009-04-16 02:20:21 -07:00
2009-12-26 20:38:23 -08:00
2010-03-16 14:15:42 -07:00
2010-01-18 00:29:19 -08:00
2009-04-29 17:32:34 -07:00
2010-03-15 15:47:03 -07:00
2009-10-01 15:14:54 -07:00
2010-02-12 16:21:01 -08:00
2009-03-27 00:46:48 -07:00
2008-11-25 18:25:49 -08:00
2008-08-29 02:13:33 -07:00
2008-08-29 02:14:29 -07:00
2008-08-29 02:14:43 -07:00
2010-02-26 02:08:42 -08:00
2010-02-17 17:27:40 -08:00
2010-03-08 16:55:37 +01:00
2009-11-26 15:51:29 -08:00
2009-01-11 00:06:36 -08:00