linux/drivers/net/ethernet/broadcom/bnxt
Edwin Peer 22630e28f9 bnxt_en: fix error handling when flashing from file
After bnxt_hwrm_do_send_message() was updated to return standard error
codes in a recent commit, a regression in bnxt_flash_package_from_file()
was introduced.  The return value does not properly reflect all
possible firmware errors when calling firmware to flash the package.

Fix it by consolidating all errors in one local variable rc instead
of having 2 variables for different errors.

Fixes: d4f1420d36 ("bnxt_en: Convert error code in firmware message response to standard code.")
Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-01 19:15:27 -08:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bnxt.c bnxt_en: reinitialize IRQs when MTU is modified 2020-03-01 19:15:27 -08:00
bnxt.h bnxt_en: Rename switch_id to dsn 2020-01-27 11:33:28 +01:00
bnxt_coredump.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_dcb.c bnxt_en: Prepare bnxt_init_one() to be called multiple times. 2019-08-30 14:02:18 -07:00
bnxt_dcb.h bnxt_en: Do not use the CNP CoS queue for networking traffic. 2018-08-05 17:08:26 -07:00
bnxt_debugfs.c bnxt: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
bnxt_debugfs.h bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_devlink.c bnxt_en: add newline to netdev_*() format strings 2020-02-26 15:52:33 -08:00
bnxt_devlink.h bnxt_en: Add support for devlink info command 2020-01-27 11:33:29 +01:00
bnxt_dim.c linux/dim: Move implementation to .c files 2019-06-25 13:46:39 -07:00
bnxt_ethtool.c bnxt_en: fix error handling when flashing from file 2020-03-01 19:15:27 -08:00
bnxt_ethtool.h bnxt_en: Return error if FW returns more data than dump length 2019-12-10 17:37:14 -08:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface spec to 1.10.1.12. 2019-11-18 17:13:28 -08:00
bnxt_nvm_defs.h bnxt_en: Fix memory fault in bnxt_ethtool_init() 2018-04-19 16:35:09 -04:00
bnxt_sriov.c bnxt_en: Assign more RSS context resources to the VFs. 2019-11-24 14:48:02 -08:00
bnxt_sriov.h bnxt_en: Retain user settings on a VF after RESET_NOTIFY event. 2019-08-30 14:02:19 -07:00
bnxt_tc.c bnxt_en: add newline to netdev_*() format strings 2020-02-26 15:52:33 -08:00
bnxt_tc.h bnxt_en: Fix array overrun in bnxt_fill_l2_rewrite_fields(). 2019-11-13 14:28:30 -08:00
bnxt_ulp.c bnxt_en: Fix MSIX request logic for RDMA driver. 2019-12-10 17:37:14 -08:00
bnxt_ulp.h bnxt_en: Improve bnxt_ulp_stop()/bnxt_ulp_start() call sequence. 2019-10-31 14:48:20 -07:00
bnxt_vfr.c bnxt_en: add newline to netdev_*() format strings 2020-02-26 15:52:33 -08:00
bnxt_vfr.h devlink: Add extack for eswitch operations 2018-10-03 16:17:58 -07:00
bnxt_xdp.c bnxt_en: add page_pool support 2019-07-08 15:15:25 -07:00
bnxt_xdp.h bnxt_en: optimized XDP_REDIRECT support 2019-07-08 15:15:24 -07:00