mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-25 23:55:17 +00:00
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> |
||
|---|---|---|
| .. | ||
| bnx2x_cmn.c | ||
| bnx2x_cmn.h | ||
| bnx2x_dcb.c | ||
| bnx2x_dcb.h | ||
| bnx2x_dump.h | ||
| bnx2x_ethtool.c | ||
| bnx2x_fw_defs.h | ||
| bnx2x_fw_file_hdr.h | ||
| bnx2x_hsi.h | ||
| bnx2x_init_ops.h | ||
| bnx2x_init.h | ||
| bnx2x_link.c | ||
| bnx2x_link.h | ||
| bnx2x_main.c | ||
| bnx2x_mfw_req.h | ||
| bnx2x_reg.h | ||
| bnx2x_self_test.c | ||
| bnx2x_sp.c | ||
| bnx2x_sp.h | ||
| bnx2x_sriov.c | ||
| bnx2x_sriov.h | ||
| bnx2x_stats.c | ||
| bnx2x_stats.h | ||
| bnx2x_vfpf.c | ||
| bnx2x_vfpf.h | ||
| bnx2x.h | ||
| Makefile | ||