commit | 0b5b561cea32d5bb1e0a82d65b755a3cb5212141 | [log] [tgz] |
---|---|---|
author | Michael Chan <michael.chan@broadcom.com> | Sun Mar 22 16:40:03 2020 -0400 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 23 21:42:48 2020 -0700 |
tree | 26b519d00d07207fdd6c0e3e13afb08306ee1450 | |
parent | 62d4073e86e62e316bea2c53e77db10418fd5dd7 [diff] |
bnxt_en: Return error if bnxt_alloc_ctx_mem() fails. The current code ignores the return value from bnxt_hwrm_func_backing_store_cfg(), causing the driver to proceed in the init path even when this vital firmware call has failed. Fix it by propagating the error code to the caller. Fixes: 1b9394e5a2ad ("bnxt_en: Configure context memory on new devices.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>