linux-stable/drivers/net/ethernet/broadcom
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 bnx2x: fix page fault following EEH recovery 2023-06-10 20:07:10 +01:00
bnxt bnxt_en: Implement .set_port / .unset_port UDP tunnel callbacks 2023-06-08 10:52:45 +02:00
genet net: bcmgenet: Fix EEE implementation 2023-06-07 21:53:14 -07:00
b44.c net: b44: Remove the unused function __b44_cam_read() 2023-01-30 21:03:51 -08:00
b44.h
bcm63xx_enet.c net: ethernet: broadcom: bcm63xx_enet: Drop empty platform remove function 2022-12-30 07:28:49 +00:00
bcm63xx_enet.h
bcm4908_enet.c net: broadcom: bcm4908_enet: report queued and transmitted bytes 2022-11-02 20:38:04 -07:00
bcm4908_enet.h
bcmsysport.c net: systemport: Replace platform_get_irq with platform_get_irq_optional 2023-06-02 09:56:23 +01:00
bcmsysport.h net: systemport: Add support for RDMA overflow statistic counter 2022-10-31 20:05:03 -07:00
bgmac-bcma-mdio.c
bgmac-bcma.c net: bgmac: fix BCM5358 support by setting correct flags 2023-02-09 22:25:31 -08:00
bgmac-platform.c
bgmac.c bgmac: fix *initial* chip reset to support BCM5358 2023-02-28 11:10:05 +01:00
bgmac.h bgmac: fix *initial* chip reset to support BCM5358 2023-02-28 11:10:05 +01:00
bnx2.c bnx2: remove deadcode in bnx2_init_cpus() 2023-03-23 21:49:15 -07:00
bnx2.h bnx2: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:38 -08:00
bnx2_fw.h
cnic.c dma-mapping updates for Linux 2.6 2022-12-13 09:05:19 -08:00
cnic.h
cnic_defs.h
cnic_if.h
Kconfig bnxt_en: Add auxiliary driver support 2023-02-01 19:02:06 -08:00
Makefile net: ethernet: bgmac: Remove -Warray-bounds exception 2022-10-07 08:50:07 +01:00
sb1250-mac.c ethernet: broadcom/sb1250-mac: clean up after SIBYTE_BCM1x55 removal 2023-03-24 09:04:01 +00:00
tg3.c net/tg3: resolve deadlock in tg3_reset_task() during EEH 2023-01-25 22:35:42 -08:00
tg3.h
unimac.h