summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorEdwin Peer <edwin.peer@broadcom.com>2020-03-01 22:07:18 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-18 07:17:43 +0100
commit4461ae0c15f63a32752527451f86dc27cb643f89 (patch)
treeaa72bdc664e33a0cd33ee976bdbdbcc8dd3d4d9d /mm
parent97207f491014248f2b053f0a7c1ebd1370ba14ae (diff)
bnxt_en: fix error handling when flashing from file
[ Upstream commit 22630e28f9c2b55abd217869cc0696def89f2284 ] 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: d4f1420d3656 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions