diff options
| author | David Christensen <[email protected]> | 2023-06-08 20:01:43 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-06-10 19:07:10 +0000 |
| commit | 7ebe4eda4265642859507d1b3ca330d8c196cfe5 (patch) | |
| tree | 5fc44582b2463847d6638d62a9dd0825c01d5d64 /drivers/net/wan/lapbether.c | |
| parent | Merge tag 'nf-23-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/netf... (diff) | |
| download | kernel-7ebe4eda4265642859507d1b3ca330d8c196cfe5.tar.gz kernel-7ebe4eda4265642859507d1b3ca330d8c196cfe5.zip | |
bnx2x: fix page fault following EEH recovery
In the last step of the EEH recovery process, the EEH driver calls into
bnx2x_io_resume() to re-initialize the NIC hardware via the function
bnx2x_nic_load(). If an error occurs during bnx2x_nic_load(), OS and
hardware resources are released and an error code is returned to the
caller. When called from bnx2x_io_resume(), the return code is ignored
and the network interface is brought up unconditionally. Later attempts
to send a packet via this interface result in a page fault due to a null
pointer reference.
This patch checks the return code of bnx2x_nic_load(), prints an error
message if necessary, and does not enable the interface.
Signed-off-by: David Christensen <[email protected]>
Reviewed-by: Sridhar Samudrala <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions
