mirror_ubuntu-kernels/drivers/net/ethernet/broadcom/bnx2x
David Christensen 7ebe4eda42 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 <drc@linux.vnet.ibm.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-06-10 20:07:10 +01:00
..
bnx2x_cmn.c net: vlan: introduce skb_vlan_eth_hdr() 2023-04-23 14:16:44 +01:00
bnx2x_cmn.h net: remove napi_hash_del() from driver-facing API 2020-09-10 13:08:46 -07:00
bnx2x_dcb.c
bnx2x_dcb.h
bnx2x_dump.h
bnx2x_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
bnx2x_fw_defs.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_fw_file_hdr.h
bnx2x_hsi.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_init_ops.h net: bnx2x: fix variable dereferenced before check 2021-11-15 13:28:49 +00:00
bnx2x_init.h
bnx2x_link.c bnx2x: Fix comment typo 2022-08-12 11:28:19 +01:00
bnx2x_link.h
bnx2x_main.c bnx2x: fix page fault following EEH recovery 2023-06-10 20:07:10 +01:00
bnx2x_mfw_req.h
bnx2x_reg.h bnx2x: Fix spelling mistake "regiser" -> "register" 2022-04-11 10:52:09 +01:00
bnx2x_self_test.c
bnx2x_sp.c net: broadcom: bnx2x: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
bnx2x_sp.h
bnx2x_sriov.c bnx2x: fix pci device refcount leak in bnx2x_vf_is_pcie_pending() 2022-11-22 13:32:26 +01:00
bnx2x_sriov.h net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
bnx2x_stats.c bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_stats.h bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_vfpf.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
bnx2x_vfpf.h
bnx2x.h bnx2x: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
Makefile