diff options
author | Benjamin Li <benli@broadcom.com> | 2010-03-23 13:13:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-23 23:19:55 -0700 |
commit | 4327ba435a56ada13eedf3eb332e583c7a0586a9 (patch) | |
tree | 87332475d3fb1a6721659d9692730ec693caeb5a /drivers/net/3c505.h | |
parent | 4881a4f89a95cc5fef6d32953954bcc3443eefd5 (diff) | |
download | op-kernel-dev-4327ba435a56ada13eedf3eb332e583c7a0586a9.zip op-kernel-dev-4327ba435a56ada13eedf3eb332e583c7a0586a9.tar.gz |
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 'drivers/net/3c505.h')
0 files changed, 0 insertions, 0 deletions