aboutsummaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorBenjamin Li2010-03-23 13:13:11 +0000
committerDavid S. Miller2010-03-23 23:19:55 -0700
commit4327ba435a56ada13eedf3eb332e583c7a0586a9 (patch)
tree87332475d3fb1a6721659d9692730ec693caeb5a /tools/perf
parent4881a4f89a95cc5fef6d32953954bcc3443eefd5 (diff)
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>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions